Differences From Artifact [6c09ccf959]:
- File
src/OFThread.m
— part of check-in
[5358e9ea6a]
at
2019-08-01 20:14:35
on branch trunk
— Split threading.[hm] into multiple files
This allows the runtime to only link against the parts it needs, without
pulling in unnecessary parts like thread spawning, TLS and conditions. (user: js, size: 10469) [annotate] [blame] [check-ins using]
To Artifact [83f93c8053]:
- File src/OFThread.m — part of check-in [a2ab241bc7] at 2019-08-02 12:23:55 on branch trunk — OFThread: Set main thread to running (user: js, size: 10512) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
351 352 353 354 355 356 357 358 359 360 361 362 363 364 | return [OFThread currentThread].name; } + (void)of_createMainThread { mainThread = [[OFThread alloc] init]; mainThread->_thread = of_thread_current(); if (!of_tlskey_set(threadSelfKey, mainThread)) @throw [OFInitializationFailedException exceptionWithClass: self]; } - (instancetype)init | > | 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | return [OFThread currentThread].name; } + (void)of_createMainThread { mainThread = [[OFThread alloc] init]; mainThread->_thread = of_thread_current(); mainThread->_running = OF_THREAD_RUNNING; if (!of_tlskey_set(threadSelfKey, mainThread)) @throw [OFInitializationFailedException exceptionWithClass: self]; } - (instancetype)init |
︙ | ︙ |