Differences From Artifact [ec95778541]:
- File src/OFThread.m — part of check-in [70b77b9b3a] at 2011-04-12 12:43:47 on branch trunk — Detach threads when we never joined them. (user: js, size: 8734) [annotate] [blame] [check-ins using]
To Artifact [b7fb0c0ce5]:
- File src/OFThread.m — part of check-in [9825bfe451] at 2011-04-12 13:06:27 on branch trunk — Detach the thread if it was not joined but we want to re-run it. (user: js, size: 8805) [annotate] [blame] [check-ins using]
︙ | |||
239 240 241 242 243 244 245 246 247 248 249 250 251 252 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | + + + | } - (void)start { if (running == OF_THREAD_RUNNING) @throw [OFThreadStillRunningException newWithClass: isa thread: self]; if (running = OF_THREAD_WAITING_FORJOIN) of_thread_detach(thread); [self retain]; if (!of_thread_new(&thread, call_main, self)) { [self release]; @throw [OFThreadStartFailedException newWithClass: isa thread: self]; |
︙ |