Lines Matching defs:SimpleThread
145 // class SimpleThread Of course we need a thread class first..
149 class SimpleThread
152 SimpleThread();
153 virtual ~SimpleThread();
167 void SimpleThread::errorFunc() {
190 // class SimpleThread Windows Implementation
202 ((SimpleThread*)arg)->run();
206 SimpleThread::SimpleThread()
214 SimpleThread::~SimpleThread()
229 int32_t SimpleThread::start()
259 UBool SimpleThread::isRunning() {
261 // Test whether the thread associated with the SimpleThread object is
291 void SimpleThread::sleep(int32_t millis)
298 // class SimpleThread NULL Implementation
309 SimpleThread::SimpleThread()
312 SimpleThread::~SimpleThread()
316 SimpleThread::start()
320 SimpleThread::run()
324 SimpleThread::sleep(int32_t millis)
328 SimpleThread::isRunning() {
337 // class SimpleThread POSIX implementation
342 // The function SimpleThread::isRunning() is used for this purpose.
369 SimpleThread *This = (SimpleThread *)arg;
382 SimpleThread::SimpleThread()
390 SimpleThread::~SimpleThread()
400 int32_t SimpleThread::start()
448 SimpleThread::isRunning() {
461 void SimpleThread::sleep(int32_t millis)
556 class TestThreadsThread : public SimpleThread
560 virtual void run() { SimpleThread::sleep(1000);
571 SimpleThread *threads[THREADTEST_NRTHREADS];
591 SimpleThread::sleep(100);
627 SimpleThread::sleep(500);
664 class TestMutexThread : public SimpleThread
715 SimpleThread::sleep(500);
733 SimpleThread::sleep(500);
746 SimpleThread::sleep(500);
768 class ThreadWithStatus : public SimpleThread
778 SimpleThread::errorFunc();
1106 // while (fNum == 4) {SimpleThread::sleep(10000);} // Force a failure by preventing thread from finishing
1134 SimpleThread::errorFunc();
1158 SimpleThread::sleep(1); // yield
1166 SimpleThread::errorFunc();
1431 SimpleThread::errorFunc();
1443 SimpleThread::sleep(900);
1446 SimpleThread::errorFunc();
1501 // while (fNum == 4) {SimpleThread::sleep(10000);} // Force a failure by preventing thread from finishing
1527 SimpleThread::errorFunc();
1566 SimpleThread::sleep(900);
1571 // while (TRUE) {SimpleThread::sleep(10000);} // TODO: for debugging. Sleep forever on failure.
1576 SimpleThread::errorFunc();