size_t nNo;
size_t nThread;
- value_type()
+ value_type()
: nNo( 0 )
- , nThread( 0 )
+ , nThread( 0 )
{}
- value_type( size_t n )
+ value_type( size_t n )
: nNo( n )
- , nThread( 0 )
+ , nThread( 0 )
{}
};
};
protected:
- static void SetUpTestCase()\r
- {\r
- cds_test::config const& cfg = get_config("Stack_PushPop");\r
-\r
+ static void SetUpTestCase()
+ {
+ cds_test::config const& cfg = get_config("Stack_PushPop");
+
s_nPushThreadCount = cfg.get_size_t( "PushThreadCount", s_nPushThreadCount );
s_nPopThreadCount = cfg.get_size_t( "PopThreadCount", s_nPopThreadCount );
s_nStackSize = cfg.get_size_t( "StackSize", s_nStackSize );
s_nPushThreadCount = 1;
if ( s_nPopThreadCount == 0 )
s_nPopThreadCount = 1;
- }\r
-\r
- //static void TearDownTestCase();\r
+ }
+
+ //static void TearDownTestCase();
template <typename Stack>
void test( Stack& stack )