mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Added fix for error reported by Philippe Roussel on GNU/Linux.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28599 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7a877b871
commit
a9639aa3fa
1 changed files with 4 additions and 1 deletions
|
@ -180,7 +180,10 @@ NSLOCKING_METHODS
|
|||
[self release];
|
||||
return nil;
|
||||
}
|
||||
if (0 != pthread_mutex_init(&_mutex, NULL))
|
||||
pthread_mutexattr_t attr;
|
||||
pthread_mutexattr_init(&attr);
|
||||
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
|
||||
if (0 != pthread_mutex_init(&_mutex, &attr))
|
||||
{
|
||||
pthread_cond_destroy(&_condition);
|
||||
[self release];
|
||||
|
|
Loading…
Reference in a new issue