Differences From Artifact [4ed6327174]:
- File src/OFThread.m — part of check-in [8a2fa8eff4] at 2019-09-01 18:22:55 on branch trunk — Add +[OFThread isMainThread] (user: js, size: 10709) [annotate] [blame] [check-ins using]
To Artifact [0dae234b3c]:
- File src/OFThread.m — part of check-in [35958b2528] at 2019-09-01 18:25:13 on branch trunk — Disallow +[OFThread terminate] on main thread (user: js, size: 10786) [annotate] [blame] [check-ins using]
︙ | |||
311 312 313 314 315 316 317 318 319 320 321 322 323 324 | 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | + + + | OF_UNREACHABLE } + (void)terminateWithObject: (id)object { OFThread *thread = of_tlskey_get(threadSelfKey); if (thread == mainThread) @throw [OFInvalidArgumentException exception]; OF_ENSURE(thread != nil); thread->_returnValue = [object retain]; longjmp(thread->_exitEnv, 1); OF_UNREACHABLE } |
︙ |