Differences From Artifact [fd76b79d25]:
- File src/OFThread.m — part of check-in [b7142607c2] at 2011-03-25 15:48:50 on branch trunk — Pass the condition for condition exceptions. (user: js, size: 8562) [annotate] [blame] [check-ins using]
To 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]
︙ | |||
268 269 270 271 272 273 274 275 276 277 278 279 280 281 | 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | + + + + + + + | - (void)dealloc { if (running == OF_THREAD_RUNNING) @throw [OFThreadStillRunningException newWithClass: isa thread: self]; /* * We should not be running anymore, but call detach in order to free * the resources. */ if (running == OF_THREAD_WAITING_FOR_JOIN) of_thread_detach(thread); [object release]; [retval release]; [super dealloc]; } @end |
︙ |