Make phtread a non-optional requirement
This commit is contained in:
parent
2c864a296c
commit
1a95b536de
4 changed files with 3 additions and 34 deletions
|
@ -74,42 +74,22 @@ DefaultWatch::~DefaultWatch()
|
|||
|
||||
DefaultMutex::DefaultMutex()
|
||||
{
|
||||
#if defined HAVE_PTHREAD_H
|
||||
|
||||
pthread_mutex_init(&_mutex, NULL);
|
||||
|
||||
#elif defined HAVE_WIN32
|
||||
#endif
|
||||
}
|
||||
|
||||
DefaultMutex::~DefaultMutex()
|
||||
{
|
||||
#if defined HAVE_PTHREAD_H
|
||||
|
||||
pthread_mutex_destroy(&_mutex);
|
||||
|
||||
#elif defined HAVE_WIN32
|
||||
#endif
|
||||
}
|
||||
|
||||
void DefaultMutex::lock()
|
||||
{
|
||||
#if defined HAVE_PTHREAD_H
|
||||
|
||||
pthread_mutex_lock(&_mutex);
|
||||
|
||||
#elif defined HAVE_WIN32
|
||||
#endif
|
||||
}
|
||||
|
||||
void DefaultMutex::unlock()
|
||||
{
|
||||
#if defined HAVE_PTHREAD_H
|
||||
|
||||
pthread_mutex_unlock(&_mutex);
|
||||
|
||||
#elif defined HAVE_WIN32
|
||||
#endif
|
||||
}
|
||||
|
||||
DefaultMainLoop::DefaultMainLoop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue