Lines Matching refs:Thread
13 #include "base/threading/thread.h"
25 using base::Thread;
844 // Enforce that every tasks are sent before starting to run the main thread
983 Thread worker("RecursiveDenial2_worker");
984 Thread::Options options;
995 // Let the other thread execute.
1022 // needs to process windows messages on the current thread.
1026 Thread worker("RecursiveSupport2_worker");
1027 Thread::Options options;
1038 // Let the other thread execute.
1053 is called in the main thread, if it is faster than getting to the
1294 Thread thread("IOHandler test");
1295 Thread::Options options;
1297 ASSERT_TRUE(thread.StartWithOptions(options));
1299 MessageLoop* thread_loop = thread.message_loop();
1305 Sleep(100); // Make sure the thread runs and sleeps for lack of work.
1314 thread.Stop();
1334 Thread thread("IOHandler test");
1335 Thread::Options options;
1337 ASSERT_TRUE(thread.StartWithOptions(options));
1339 MessageLoop* thread_loop = thread.message_loop();
1347 Sleep(100); // Make sure the thread runs and sleeps for lack of work.
1351 // At this time handler1 is waiting to be called, and the thread is waiting
1367 thread.Stop();