]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/simplethread.h
1 /********************************************************************
3 * Copyright (c) 1997-2009, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
12 class U_EXPORT SimpleThread
16 virtual ~SimpleThread();
17 int32_t start(void); // start the thread
18 UBool
isRunning(); // return true if a started thread has exited.
20 virtual void run(void) = 0; // Override this to provide the code to run
22 void *fImplementation
;
25 static void sleep(int32_t millis
); // probably shouldn't go here but oh well.
26 static void errorFunc(); // Empty function, provides a single convenient place
27 // to break on errors.