android_mt6572_jiabo/external/icu/icu4c/source/test/intltest/simplethread.h
2025-09-05 16:56:03 +08:00

27 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