mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Clarify thread detach error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25880 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ffb78948a5
commit
cf3dc3ab92
1 changed files with 2 additions and 1 deletions
|
@ -912,12 +912,13 @@ pthread_detach(pthread_self());
|
||||||
*/
|
*/
|
||||||
_active = YES;
|
_active = YES;
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
if (objc_thread_detach(@selector(main), self, nil) == NULL)
|
if (objc_thread_detach(@selector(main), self, nil) == NULL)
|
||||||
{
|
{
|
||||||
_active = NO;
|
_active = NO;
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
[NSException raise: NSInternalInconsistencyException
|
[NSException raise: NSInternalInconsistencyException
|
||||||
format: @"Unable to detach thread (perhaps %@)",
|
format: @"Unable to detach thread (last error %@)",
|
||||||
[NSError _last]];
|
[NSError _last]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue