NSThread(CC3) Category Reference
Declared in | CC3OSExtensions.h |
Instance Methods
runBlock:after:
Waits the specified number of seconds, then dispatches the specified block to the run loop of this thread.
- (void)runBlock:(void ( ^ ) ( void ))block after:(NSTimeInterval)seconds
Discussion
This method returns immediately once the specified block is queued for execution on the run loop of this thread. This method does not wait for the execution of the block to complete.
This method copies the block and releases the copy it once it has been executed.
Declared In
CC3OSExtensions.h
runBlockAsync:
Dispatches the specified block to the run loop of this thread, without waiting for the block to be executed.
- (void)runBlockAsync:(void ( ^ ) ( void ))block
Discussion
This method returns immediately once the specified block is queued for execution on the run loop of this thread. This method does not wait for the execution of the block to complete.
This method copies the block and releases the copy it once it has been executed.
Declared In
CC3OSExtensions.h
runBlockSync:
Dispatches the specified block to the run loop of this thread, and waits for the block to be executed.
- (void)runBlockSync:(void ( ^ ) ( void ))block
Discussion
This method returns only after the the specified block has completed execution. The current thread will halt (block) until then.
This method copies the block and releases the copy it once it has been executed.
Declared In
CC3OSExtensions.h