feat/support_fiber #6
@ -101,7 +101,6 @@ TEST_F(CondVarTest, NotifyOne_WaitFor) {
|
|||||||
|
|
||||||
SetWorker(new std::thread(WaitFor));
|
SetWorker(new std::thread(WaitFor));
|
||||||
WaitStarted();
|
WaitStarted();
|
||||||
std::this_thread::sleep_for(kWaitTimeout / 2);
|
|
||||||
ASSERT_FALSE(is_set);
|
ASSERT_FALSE(is_set);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -249,8 +249,8 @@ TEST(ScopedLock, TryLock) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(ScopedLock, MultiThread) {
|
TEST(ScopedLock, MultiThread) {
|
||||||
constexpr std::size_t kThreadCount = 4;
|
constexpr std::size_t kThreadCount = 5;
|
||||||
constexpr std::size_t kLoopCount = 1000;
|
constexpr std::size_t kLoopCount = 10000;
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
Mutex m;
|
Mutex m;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user