Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: source/test/intltest/simplethread.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/simplepatternformattertest.cpp ('k') | source/test/intltest/simplethread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « source/test/intltest/simplepatternformattertest.cpp ('k') | source/test/intltest/simplethread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698