Differences From Artifact [12d687f3c9]:
- File
src/OFThread.m
— part of check-in
[cc17787021]
at
2010-04-10 21:43:47
on branch trunk
— Minor fix for -[join] in OFThread.
We also want to be able to join a thread that is still running, this
change allows that. (user: js, size: 4978) [annotate] [blame] [check-ins using]
To Artifact [e7e5a215e2]:
- File src/OFThread.m — part of check-in [82fe4443e2] at 2010-04-10 21:49:24 on branch trunk — Retain the thread in -[start] first to prevent a race condition. (user: js, size: 5002) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
135 136 137 138 139 140 141 | - (void)handleTermination { } - start { | > > | > | > < | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | - (void)handleTermination { } - start { [self retain]; if (!of_thread_new(&thread, call_run, self)) { [self release]; @throw [OFThreadStartFailedException newWithClass: isa]; } running = OF_THREAD_RUNNING; return self; } - (id)join { if (running == OF_THREAD_NOT_RUNNING || !of_thread_join(thread)) |
︙ | ︙ |