icinga2/base/thread.h

28 lines
307 B
C
Raw Normal View History

#ifndef THREAD_H
#define THREAD_H
2012-03-31 09:36:00 +02:00
namespace icinga
{
class I2_BASE_API thread
2012-03-31 09:36:00 +02:00
{
private:
#ifdef _WIN32
HANDLE m_Thread;
#else
pthread_t m_Thread;
#endif
public:
thread(void (*callback)(void *));
~thread(void);
void start(void);
void terminate(void);
void join(void);
};
}
#endif /* THREAD_H */