AtomicBoolean for _closed flag

This commit is contained in:
Matej Sekoranja
2011-10-06 20:40:33 +02:00
parent 6a51e31a30
commit 0eb299b843
6 changed files with 46 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
#include <gtest/gtest.h>
#include <remote.h>
using namespace epics::pvAccess;
TEST(atomicBooleanTest, atomicBoolean)
{
AtomicBoolean ab;
EXPECT_FALSE(ab.get());
ab.set();
EXPECT_TRUE(ab.get());
ab.clear();
EXPECT_FALSE(ab.get());
}