#import <CC3OSExtensions.h>
Instance Methods | |
(void) | - runBlock:after: |
(void) | - runBlockAsync: |
(void) | - runBlockSync: |
Extension category to support Cocos3D functionality.
- (void) runBlock: | (void) | block | |
after: | (NSTimeInterval) | seconds | |
Waits the specified number of seconds, then dispatches the specified block to the run loop of this thread.
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.
- (void) runBlockAsync: | (void) | block |
Dispatches the specified block to the run loop of this thread, without waiting for the block to be executed.
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.
- (void) runBlockSync: | (void) | block |
Dispatches the specified block to the run loop of this thread, and waits for the block to be executed.
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.