icinga2/base/thread.h

28 lines
295 B
C
Raw Normal View History

#ifndef THREAD_H
#define THREAD_H
2012-03-31 09:36:00 +02:00
namespace icinga
{
class thread
{
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 */