320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
+ (void)terminateWithObject: (id)object
{
OFThread *thread = OFTLSKeyGet(threadSelfKey);
if (thread == mainThread)
@throw [OFInvalidArgumentException exception];
OF_ENSURE(thread != nil);
thread->_returnValue = [object retain];
longjmp(thread->_exitEnv, 1);
OF_UNREACHABLE
}
|
|
|
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
+ (void)terminateWithObject: (id)object
{
OFThread *thread = OFTLSKeyGet(threadSelfKey);
if (thread == mainThread)
@throw [OFInvalidArgumentException exception];
OFEnsure(thread != nil);
thread->_returnValue = [object retain];
longjmp(thread->_exitEnv, 1);
OF_UNREACHABLE
}
|