Files
mlpack/fastlib/par/thread.cc
T
2007-08-15 19:37:34 +00:00

22 lines
402 B
C++

/**
* @file thread.cc
*
* Implementation of the thread abstraction.
*/
#include "thread.h"
Mutex Mutex::global;
#ifdef DEBUG
pthread_mutex_t Mutex::fast_mutex_ =
PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;
#else
pthread_mutex_t Mutex::fast_mutex_ =
PTHREAD_MUTEX_INITIALIZER;
#endif
pthread_mutex_t Mutex::recursive_mutex_ =
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
// TODO: Blank file