v2.0.2
Instance Methods | List of all members
NSThread(CC3) Category Reference

#import <CC3OSExtensions.h>

Instance Methods

(void) - runBlock:after:
 
(void) - runBlockAsync:
 
(void) - runBlockSync:
 

Detailed Description

Extension category to support Cocos3D functionality.

Method Documentation

- (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.


The documentation for this category was generated from the following file: