vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
RenderThread Class Reference

Subclass of VVThreadLoop from VVBasics, provides a simple interface for dealing with GL resources that aren't threadsafe, and need to be created, rendered, and deleted all on the same thread. More...

#import <RenderThread.h>

Inherits VVThreadLoop.

Additional Inherited Members

- Instance Methods inherited from VVThreadLoop
(id) - initWithTimeInterval:target:selector:
 Returns an initialized VVThreadLoop which will call method "s" on target "t" every time it executes. Returns nil if passed a nil target or selector, or if the target doesn't respond to the selector.
 
(id) - initWithTimeInterval:
 Returns an initialized VVThreadLoop which will call "threadProc" on itself every time it executes, so you should override "threadProc" in your subclass.
 
(void) - start
 Spawns a thread and starts executing. If the thread has already been spawned and is executing, doesn't do anything.
 
(void) - pause
 Pauses/resumes execution. The thread will still be running at the configured interval- that's what differentiates pause/resume from start/stop- but the target/selector won't be getting called.
 
(void) - stop
 Stops execution by setting a "bail" flag, and returns immediately. IMPORTANT: may return while the thread loop is still executing!
 
(void) - stopAndWaitUntilDone
 Stops execution and doesn't return until the thread's done executing and has been closed.
 
(double) - interval
 The interval between executions, in seconds.
 
(void) - setInterval:
 Set the interval between executions, in seconds.
 
(BOOL) - running
 Whether or not the thread loop is running.
 
- Protected Attributes inherited from VVThreadLoop
id targetObj
 NOT retained! If there's no valid target obj/sel pair, the instance sill simply call "threadProc" on itself, so you can just override that method.
 

Detailed Description

Subclass of VVThreadLoop from VVBasics, provides a simple interface for dealing with GL resources that aren't threadsafe, and need to be created, rendered, and deleted all on the same thread.


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