mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
9dfadd809e
commit
da0ba10792
1 changed files with 4 additions and 1 deletions
|
@ -180,7 +180,10 @@ NSLOCKING_METHODS
|
||||||
[self release];
|
[self release];
|
||||||
return nil;
|
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);
|
pthread_cond_destroy(&_condition);
|
||||||
[self release];
|
[self release];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue