Differences From Artifact [3b9d6bd50a]:
- File
src/OFThread.m
— part of check-in
[8e84561642]
at
2017-05-17 22:07:03
on branch trunk
— OFThread: Use unsigned int instead of useconds_t
useconds_t isn't always available and an unsigned int always satisfies
the range we require here. (user: js, size: 8921) [annotate] [blame] [check-ins using]
To Artifact [b1f565231d]:
- File
src/OFThread.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 8921) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
118 119 120 121 122 123 124 | thread->_returnValue = [[thread main] retain]; [thread handleTermination]; thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); | | | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | thread->_returnValue = [[thread main] retain]; [thread handleTermination]; thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); [OFAutoreleasePool of_handleThreadTermination]; [thread release]; } #endif @implementation OFThread #ifdef OF_HAVE_THREADS |
︙ | ︙ | |||
257 258 259 260 261 262 263 | [thread handleTermination]; thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); } | | | | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | [thread handleTermination]; thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); } [OFAutoreleasePool of_handleThreadTermination]; [thread release]; of_thread_exit(); } + (void)of_createMainThread { mainThread = [[OFThread alloc] init]; mainThread->_thread = of_thread_current(); if (!of_tlskey_set(threadSelfKey, mainThread)) @throw [OFInitializationFailedException exceptionWithClass: self]; |
︙ | ︙ |