Lines Matching full:threads
194 // TestThreads -- see if threads really work at all.
196 // Set up N threads pointing at N chars. When they are started, they will
218 SimpleThread *threads[THREADTEST_NRTHREADS];
225 threads[i] = new TestThreadsThread(&threadTestChars[i]);
229 logln("->" + UnicodeString(threadTestChars) + "<- Firing off threads.. ");
232 if (threads[i]->start() != 0) {
242 logln("Waiting for threads to be set..");
244 errln("No threads could be started for testing!");
265 logln("->" + UnicodeString(threadTestChars) + "<- Got all threads! cya");
268 delete threads[i];
280 delete threads[i];
316 // This is the code that each of the spawned threads runs.
317 // All of the spawned threads bunch up together at each of the two mutexes
332 // Start up the test threads. They should all pile up waiting on
333 // gTestMutexA, which we (the main thread) hold until the test threads
339 TestMutexThread *threads[TESTMUTEX_THREAD_COUNT];
343 threads[i] = new TestMutexThread;
344 if (threads[i]->start() != 0) {
352 errln("No threads could be started for testing!");
364 // None of the test threads should have advanced past the first mutex.
368 // All of the test threads have made it to the first mutex.
384 // All test threads made it to the second mutex.
396 // All threads made it by both mutexes.
404 delete threads[i];
480 const int kFormatThreadThreads = 10; // # of threads to spawn
481 const int kFormatThreadPatience = 60; // time in seconds to wait for all threads
767 // Create and start the test threads
769 logln("Spawning: %d threads * %d iterations each.",
784 // Spin, waiting for the test threads to finish.
789 /* Spin until the test threads complete. */
798 have a brain dead thread scheduler. They starve the child threads from
817 // All threads have finished.
833 #define kCollatorThreadThreads 10 // # of threads to spawn
1020 logln(UnicodeString("Spawning: ") + kCollatorThreadThreads + " threads * " + kFormatThreadIterations + " iterations each.");
1030 infoln("THREAD INFO: Couldn't spawn more than %i threads", noSpawned);
1037 threads could be spawned.");
1105 const int kStringThreadThreads = 10; // # of threads to spawn
1106 const int kStringThreadPatience = 120; // time in seconds to wait for all threads
1168 logln(UnicodeString("Spawning: ") + kStringThreadThreads + " threads * " + kStringThreadIterations + " iterations each.");
1229 threads are still running and using this data. This will only happen