proxygen
|
#include <thread>
#include <folly/ScopeGuard.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
#include <folly/system/ThreadName.h>
Go to the source code of this file.
Functions | |
TEST (ThreadName, getCurrentThreadName) | |
TEST (ThreadName, setThreadName_other_id) | |
TEST | ( | ThreadName | , |
getCurrentThreadName | |||
) |
Definition at line 35 of file ThreadNameTest.cpp.
References EXPECT_EQ, folly::getCurrentThreadName(), folly::Baton< MayBlock, Atom >::post(), SCOPE_EXIT, folly::setThreadName(), and folly::Baton< MayBlock, Atom >::wait().
TEST | ( | ThreadName | , |
setThreadName_other_id | |||
) |
Definition at line 69 of file ThreadNameTest.cpp.
References EXPECT_EQ, folly::getThreadName(), folly::Baton< MayBlock, Atom >::post(), SCOPE_EXIT, folly::setThreadName(), and folly::Baton< MayBlock, Atom >::wait().