Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
};
public:
- static void SetUpTestCase()\r
- {\r
- cds_test::config const& cfg = get_config( "queue_random" );\r
-\r
+ static void SetUpTestCase()
+ {
+ cds_test::config const& cfg = get_config( "queue_random" );
+
s_nReaderThreadCount = cfg.get_size_t( "ReaderCount", s_nReaderThreadCount );
s_nWriterThreadCount = cfg.get_size_t( "WriterCount", s_nWriterThreadCount );
s_nQueueSize = cfg.get_size_t( "QueueSize", s_nQueueSize );
s_nWriterThreadCount = 1;
if ( s_nQueueSize == 0 )
s_nQueueSize = 1000;
- }\r
-\r
- //static void TearDownTestCase();\r
+ }
+
+ //static void TearDownTestCase();
protected:
template <class Queue>
std::sort( arrData.begin(), arrData.end() );
for ( size_t i=1; i < arrData.size(); ++i ) {
if ( arrData[i-1] + 1 != arrData[i] ) {
- EXPECT_EQ( arrData[i-1] + 1, arrData[i] ) << "Writer " << nWriter << ": [" << (i-1) << "]=" << arrData[i-1]
+ EXPECT_EQ( arrData[i-1] + 1, arrData[i] ) << "Writer " << nWriter << ": [" << (i-1) << "]=" << arrData[i-1]
<< ", [" << i << "]=" << arrData[i];
}
}