proxygen
|
#include <folly/executors/task_queue/UnboundedBlockingQueue.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
#include <thread>
Go to the source code of this file.
Functions | |
TEST (UnboundedQueuee, push_pop) | |
TEST (UnboundedBlockingQueue, size) | |
TEST (UnboundedBlockingQueue, concurrent_push_pop) | |
TEST | ( | UnboundedQueuee | , |
push_pop | |||
) |
Definition at line 23 of file UnboundedBlockingQueueTest.cpp.
References folly::UnboundedBlockingQueue< T >::add(), EXPECT_EQ, and folly::UnboundedBlockingQueue< T >::take().
TEST | ( | UnboundedBlockingQueue | , |
size | |||
) |
Definition at line 28 of file UnboundedBlockingQueueTest.cpp.
References folly::UnboundedBlockingQueue< T >::add(), EXPECT_EQ, folly::UnboundedBlockingQueue< T >::size(), and folly::UnboundedBlockingQueue< T >::take().
TEST | ( | UnboundedBlockingQueue | , |
concurrent_push_pop | |||
) |
Definition at line 37 of file UnboundedBlockingQueueTest.cpp.
References folly::UnboundedBlockingQueue< T >::add(), EXPECT_EQ, folly::Baton< MayBlock, Atom >::post(), folly::UnboundedBlockingQueue< T >::size(), folly::pushmi::detail::t, folly::UnboundedBlockingQueue< T >::take(), and folly::Baton< MayBlock, Atom >::wait().