Home
last modified time | relevance | path

Searched refs:QUEUE_SLOTS (Results 1 – 3 of 3) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
Dutils_safe_block_queue_test.cpp37 const unsigned int QUEUE_SLOTS = 10; variable
38 const unsigned int THREAD_NUM = QUEUE_SLOTS + 1;
64 SafeBlockQueue<int> DemoThreadData::shareQueue(QUEUE_SLOTS);
171 ASSERT_EQ(pushedIn, QUEUE_SLOTS);
172 ASSERT_EQ(unpushedIn, THREAD_NUM - QUEUE_SLOTS);
175 for (unsigned int i = 0; i < THREAD_NUM - QUEUE_SLOTS; i++) {
185 ASSERT_EQ(getedOut, THREAD_NUM - QUEUE_SLOTS);
232 ASSERT_EQ(pushedIn, QUEUE_SLOTS);
233 ASSERT_EQ(unpushedIn, THREAD_NUM - QUEUE_SLOTS);
236 for (unsigned int i = 0; i < THREAD_NUM - QUEUE_SLOTS; i++) {
[all …]
Dutils_safe_block_queue_tracking.cpp31 const unsigned int QUEUE_SLOTS = 10; variable
32 const unsigned int THREAD_NUM = QUEUE_SLOTS + 1;
74 SafeBlockQueueTracking<int> DemoThreadData::shareQueue(QUEUE_SLOTS);
241 ASSERT_EQ(pushedIn, QUEUE_SLOTS);
242 ASSERT_EQ(unpushedIn, THREAD_NUM - QUEUE_SLOTS);
245 for (unsigned int i = 0; i < THREAD_NUM - QUEUE_SLOTS; i++) {
256 ASSERT_EQ(getedOut, THREAD_NUM - QUEUE_SLOTS);
289 for (unsigned int i = 0; i < QUEUE_SLOTS; i++) {
414 for (unsigned int i = 0; i < QUEUE_SLOTS; i++) {
441 ASSERT_EQ(getedOut, QUEUE_SLOTS);
[all …]
Dutils_safe_queue_test.cpp32 const unsigned int QUEUE_SLOTS = 10; variable
33 const unsigned int THREAD_NUM = QUEUE_SLOTS + 1;