Lines Matching defs:threads

208 //   TestThreads -- see if threads really work at all.
210 // Set up N threads pointing at N chars. When they are started, they will
231 // TestArabicShapeThreads -- see if calls to u_shapeArabic in many threads works successfully
233 // Set up N threads pointing at N chars. When they are started, they will make calls to doTailTest which tests
235 // At the end we make sure all threads managed to run u_shapeArabic successfully.
302 SimpleThread *threads[THREADTEST_NRTHREADS];
309 threads[i] = new TestThreadsThread(&threadTestChars[i]);
313 logln("->" + UnicodeString(threadTestChars) + "<- Firing off threads.. ");
316 if (threads[i]->start() != 0) {
326 logln("Waiting for threads to be set..");
328 errln("No threads could be started for testing!");
349 logln("->" + UnicodeString(threadTestChars) + "<- Got all threads! cya");
352 delete threads[i];
364 delete threads[i];
372 SimpleThread *threads[ARABICSHAPE_THREADTEST];
380 threads[i] = new TestArabicShapeThreads(&threadTestChars[i]);
384 logln("-> do TestArabicShapingThreads <- Firing off threads.. ");
387 if (threads[i]->start() != 0) {
397 logln("Waiting for threads to be set..");
399 errln("No threads could be started for testing!");
420 logln("->TestArabicShapingThreads <- Got all threads! cya");
423 delete threads[i];
435 delete threads[i];
472 // This is the code that each of the spawned threads runs.
473 // All of the spawned threads bunch up together at each of the two mutexes
488 // Start up the test threads. They should all pile up waiting on
489 // gTestMutexA, which we (the main thread) hold until the test threads
495 TestMutexThread *threads[TESTMUTEX_THREAD_COUNT];
499 threads[i] = new TestMutexThread;
500 if (threads[i]->start() != 0) {
508 errln("No threads could be started for testing!");
520 // None of the test threads should have advanced past the first mutex.
524 // All of the test threads have made it to the first mutex.
540 // All test threads made it to the second mutex.
552 // All threads made it by both mutexes.
555 delete threads[i];
631 const int kFormatThreadThreads = 10; // # of threads to spawn
632 const int kFormatThreadPatience = 60; // time in seconds to wait for all threads
1032 // Create and start the test threads
1034 logln("Spawning: %d threads * %d iterations each.",
1049 // Spin, waiting for the test threads to finish.
1055 /* Spin until the test threads complete. */
1068 have a brain dead thread scheduler. They starve the child threads from
1087 // All threads have finished.
1105 #define kCollatorThreadThreads 10 // # of threads to spawn
1311 logln(UnicodeString("Spawning: ") + kCollatorThreadThreads + " threads * " + kFormatThreadIterations + " iterations each.");
1321 infoln("THREAD INFO: Couldn't spawn more than %i threads", noSpawned);
1328 errln("No threads could be spawned.");
1389 const int kStringThreadThreads = 10; // # of threads to spawn
1390 const int kStringThreadPatience = 120; // time in seconds to wait for all threads
1452 logln(UnicodeString("Spawning: ") + kStringThreadThreads + " threads * " + kStringThreadIterations + " iterations each.");
1513 threads are still running and using this data. This will only happen