Overview
| Comment: | Selector name consistency. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
bb5822582b13b9659052e415747fb45d |
| User & Date: | js on 2012-09-25 09:44:12 |
| Other Links: | manifest | tags |
Context
|
2012-09-26
| ||
| 20:11 | Don't assume length == 0 means closed. (check-in: fb064dae9a user: js tags: trunk) | |
|
2012-09-25
| ||
| 09:44 | Selector name consistency. (check-in: bb5822582b user: js tags: trunk) | |
|
2012-09-21
| ||
| 19:40 | Fix a warning about an unused variable. (check-in: 76852cdf91 user: js tags: trunk) | |
Changes
Modified src/OFThreadPool.h from [a3f951f884] to [1c2b5c4b19].
| ︙ | ︙ | |||
115 116 117 118 119 120 121 | * \param object The object to pass to the block */ - (void)dispatchWithBlock: (of_thread_pool_block_t)block object: (id)object; #endif /** | | | | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | * \param object The object to pass to the block */ - (void)dispatchWithBlock: (of_thread_pool_block_t)block object: (id)object; #endif /** * \brief Waits until all jobs are done. */ - (void)waitUntilDone; /** * \brief Returns the size of the thread pool. * * \return The size of the thread pool */ - (size_t)size; @end |
Modified src/OFThreadPool.m from [743cbdc4ee] to [dcfb0c9b58].
| ︙ | ︙ | |||
342 343 344 345 346 347 348 |
[queue appendObject: job];
[queueCondition signal];
} @finally {
[queueCondition unlock];
}
}
| | | 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
[queue appendObject: job];
[queueCondition signal];
} @finally {
[queueCondition unlock];
}
}
- (void)waitUntilDone
{
for (;;) {
[countCondition lock];
@try {
if (doneCount == count)
return;
|
| ︙ | ︙ |