vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
RenderThread.h
1 #import <Cocoa/Cocoa.h>
2 #import <VVBasics/VVBasics.h>
3 
4 
5 
6 
7 #define RTDeleteArrayDestroyNotification @"RTDeleteArrayDestroyNotification"
8 
9 
10 
11 
13 /*
14 \ingroup VVBufferPool
15 this class exists because some APIs require that resources must be CREATED, RENDERED, and DELETED all on the same thread- if you don't deal with them explicitly on the same thread, they leak! as such, this class maintains an array of items which are released on the render thread.
16 
17 that's it, really- this class exists solely to provide an empty mutable array that other objects add stuff to; the array is emptied only on the thread callback.
18 
19 if you're doing simple stuff with QC then you probably won't need to use this class- but if you're building something big that frees QCRenderers then you want to use this.
20 */
21 @interface RenderThread : VVThreadLoop {
22  MutLockArray *deleteArray;
23 }
24 
25 @end
Simple class for spawning a thread which executes at a specified interval- simpler and easier to work...
Definition: VVThreadLoop.h:25
Subclass of VVThreadLoop from VVBasics, provides a simple interface for dealing with GL resources tha...
Definition: RenderThread.h:21
Similar to NSMutableArray, but thread-safe. Internally, uses an NSMutableArray and a rwlock...
Definition: MutLockArray.h:20