OLD | NEW |
| (Empty) |
1 /******************************************************************** | |
2 * COPYRIGHT: | |
3 * Copyright (c) 1997-2015, International Business Machines Corporation and | |
4 * others. All Rights Reserved. | |
5 ********************************************************************/ | |
6 | |
7 #ifndef SIMPLETHREAD_H | |
8 #define SIMPLETHREAD_H | |
9 | |
10 #include "mutex.h" | |
11 | |
12 class U_EXPORT SimpleThread | |
13 { | |
14 public: | |
15 SimpleThread(); | |
16 virtual ~SimpleThread(); | |
17 int32_t start(void); // start the thread. Return 0 if successfull. | |
18 void join(); // A thread must be joined before deleting its
SimpleThread. | |
19 | |
20 virtual void run(void) = 0; // Override this to provide the code to run | |
21 // in the thread. | |
22 private: | |
23 void *fImplementation; | |
24 }; | |
25 | |
26 #endif | |
27 | |
OLD | NEW |