Index: source/test/intltest/simplethread.h |
diff --git a/source/test/intltest/simplethread.h b/source/test/intltest/simplethread.h |
index 9cd0fc2f7e1564c9cc7974cebf73ade35cbe2402..3f42485bf0b51cafd92ea09ac2c47ec40d674483 100644 |
--- a/source/test/intltest/simplethread.h |
+++ b/source/test/intltest/simplethread.h |
@@ -1,6 +1,6 @@ |
/******************************************************************** |
* COPYRIGHT: |
- * Copyright (c) 1997-2009, International Business Machines Corporation and |
+ * Copyright (c) 1997-2015, International Business Machines Corporation and |
* others. All Rights Reserved. |
********************************************************************/ |
@@ -11,20 +11,16 @@ |
class U_EXPORT SimpleThread |
{ |
-public: |
+ public: |
SimpleThread(); |
virtual ~SimpleThread(); |
- int32_t start(void); // start the thread |
- UBool isRunning(); // return true if a started thread has exited. |
+ int32_t start(void); // start the thread. Return 0 if successfull. |
+ void join(); // A thread must be joined before deleting its SimpleThread. |
virtual void run(void) = 0; // Override this to provide the code to run |
// in the thread. |
+ private: |
void *fImplementation; |
- |
-public: |
- static void sleep(int32_t millis); // probably shouldn't go here but oh well. |
- static void errorFunc(); // Empty function, provides a single convenient place |
- // to break on errors. |
}; |
#endif |