234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
#endif
}
#ifdef OF_HAVE_THREADS
+ (void)terminate
{
[self terminateWithObject: nil];
}
+ (void)terminateWithObject: (id)object
{
OFThread *thread = of_tlskey_get(threadSelfKey);
if (thread != nil) {
|
>
>
>
>
>
>
>
|
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
#endif
}
#ifdef OF_HAVE_THREADS
+ (void)terminate
{
[self terminateWithObject: nil];
/*
* For some reason, Clang thinks terminateWithObject: can return - even
* though it is declared noreturn - and warns that terminate returns
* while being declared noreturn.
*/
OF_UNREACHABLE
}
+ (void)terminateWithObject: (id)object
{
OFThread *thread = of_tlskey_get(threadSelfKey);
if (thread != nil) {
|