scuffed-code/icu4c/source/test/intltest/simplethread.h
Andy Heninger 4651204fb5 ICU-11643 Several threading test cleanups.
X-SVN-Rev: 37395
2015-04-23 23:59:24 +00:00

28 lines
780 B
C++

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2015, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#ifndef SIMPLETHREAD_H
#define SIMPLETHREAD_H
#include "mutex.h"
class U_EXPORT SimpleThread
{
public:
SimpleThread();
virtual ~SimpleThread();
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;
};
#endif