cocos3d
2.0.0
|
#import <CC3OSExtensions.h>
Instance Methods | |
(void) | - runBlock:after: |
(void) | - runBlockAsync: |
(void) | - runBlockSync: |
Class Methods | |
(BOOL) | + isRenderingThread |
Extension category to support cocos3d functionality.
+ (BOOL) isRenderingThread |
Returns whether the current thread is the thread on which OpenGL rendering is occurring.
- (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.
- (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.
- (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.