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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /******************************************************************** 1 /********************************************************************
2 * COPYRIGHT: 2 * COPYRIGHT:
3 * Copyright (c) 1997-2009, International Business Machines Corporation and 3 * Copyright (c) 1997-2015, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ********************************************************************/ 5 ********************************************************************/
6 6
7 #ifndef SIMPLETHREAD_H 7 #ifndef SIMPLETHREAD_H
8 #define SIMPLETHREAD_H 8 #define SIMPLETHREAD_H
9 9
10 #include "mutex.h" 10 #include "mutex.h"
11 11
12 class U_EXPORT SimpleThread 12 class U_EXPORT SimpleThread
13 { 13 {
14 public: 14 public:
15 SimpleThread(); 15 SimpleThread();
16 virtual ~SimpleThread(); 16 virtual ~SimpleThread();
17 int32_t start(void); // start the thread 17 int32_t start(void); // start the thread. Return 0 if successfull.
18 UBool isRunning(); // return true if a started thread has exited. 18 void join(); // A thread must be joined before deleting its SimpleThread.
19 19
20 virtual void run(void) = 0; // Override this to provide the code to run 20 virtual void run(void) = 0; // Override this to provide the code to run
21 // in the thread. 21 // in the thread.
22 private:
22 void *fImplementation; 23 void *fImplementation;
23
24 public:
25 static void sleep(int32_t millis); // probably shouldn't go here but oh well .
26 static void errorFunc(); // Empty function, provides a single convenien t place
27 // to break on errors.
28 }; 24 };
29 25
30 #endif 26 #endif
31 27
OLDNEW
« 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