|
@@ -57,8 +57,7 @@ public:
|
|
pthread_mutexattr_init( &attr );
|
|
pthread_mutexattr_init( &attr );
|
|
pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE );
|
|
pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE );
|
|
pthread_mutex_init( &mutex, &attr );
|
|
pthread_mutex_init( &mutex, &attr );
|
|
- } // TODO dsfgdslgkjhlas
|
|
|
|
- // HACK dsgdshgah
|
|
|
|
|
|
+ }
|
|
~CriticalSection()
|
|
~CriticalSection()
|
|
{
|
|
{
|
|
pthread_mutex_destroy( &mutex );
|
|
pthread_mutex_destroy( &mutex );
|