Lines Matching defs:threads
99 // threads that set the TLS, while the destructor cleans it up.
100 // After the threads finish, verify that the value is cleaned up.
104 DelegateSimpleThread* threads[kNumThreads];
108 // Spawn the threads.
112 threads[index] = new DelegateSimpleThread(thread_delegates[index],
114 threads[index]->Start();
117 // Wait for the threads to finish.
119 threads[index]->Join();
120 delete threads[index];
126 tls_slot.Free(); // Stop doing callbacks to cleanup threads.