Overview
Comment: | Remove [OFThread initWithObject:block:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
31ff715036a241d415069f7becdc9434 |
User & Date: | js on 2012-10-02 00:04:15 |
Other Links: | manifest | tags |
Context
2012-10-02
| ||
00:07 | Remove -[OFThreadPool dispatchWithBlock:object:]. check-in: 54e323d0c9 user: js tags: trunk | |
00:04 | Remove [OFThread initWithObject:block:]. check-in: 31ff715036 user: js tags: trunk | |
00:01 | OFTimer: Fix -[waitUntilDone]. check-in: bbc8bb5ad1 user: js tags: trunk | |
Changes
Modified src/OFThread.h from [fd48a1729f] to [db7d8eaae9].
︙ | ︙ | |||
127 128 129 130 131 132 133 | /** * \brief Creates a new thread with the specified block. * * \param block A block which is executed by the thread * \return A new, autoreleased thread */ + threadWithBlock: (of_thread_block_t)block; | < < < < < < < < < < | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /** * \brief Creates a new thread with the specified block. * * \param block A block which is executed by the thread * \return A new, autoreleased thread */ + threadWithBlock: (of_thread_block_t)block; #endif /** * \brief Sets the Thread Local Storage for the specified key. * * The specified object is first retained and then the object stored before is * released. You can specify nil as object if you want the old object to be |
︙ | ︙ | |||
227 228 229 230 231 232 233 | /** * \brief Initializes an already allocated thread with the specified block. * * \param block A block which is executed by the thread * \return An initialized OFThread. */ - initWithBlock: (of_thread_block_t)block; | < < < < < < < < < < < | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | /** * \brief Initializes an already allocated thread with the specified block. * * \param block A block which is executed by the thread * \return An initialized OFThread. */ - initWithBlock: (of_thread_block_t)block; #endif /** * \brief The main routine of the thread. You need to reimplement this! * * It can access the object passed to the threadWithObject or initWithObject * method using the instance variable named object. |
︙ | ︙ |
Modified src/OFThread.m from [c4706ccc79] to [c8c14f68e1].
︙ | ︙ | |||
128 129 130 131 132 133 134 | } #ifdef OF_HAVE_BLOCKS + threadWithBlock: (of_thread_block_t)block { return [[[self alloc] initWithBlock: block] autorelease]; } | < < < < < < < | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | } #ifdef OF_HAVE_BLOCKS + threadWithBlock: (of_thread_block_t)block { return [[[self alloc] initWithBlock: block] autorelease]; } #endif + (void)setObject: (id)object forTLSKey: (OFTLSKey*)key { id oldObject = of_tlskey_get(key->key); |
︙ | ︙ | |||
264 265 266 267 268 269 270 | return self; } #ifdef OF_HAVE_BLOCKS - initWithBlock: (of_thread_block_t)block_ { | < < < < < < < < | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | return self; } #ifdef OF_HAVE_BLOCKS - initWithBlock: (of_thread_block_t)block_ { self = [super init]; @try { block = [block_ copy]; } @catch (id e) { [self release]; @throw e; } return self; |
︙ | ︙ |