1 #ifndef G3D_ThreadSet_h
2 #define G3D_ThreadSet_h
24 typedef shared_ptr<ThreadSet>
Ref;
69 int insert(
const ThreadRef& t);
73 bool remove(
const ThreadRef& t);
75 bool contains(
const ThreadRef& t)
const;
82 ConstIterator
begin()
const;
84 ConstIterator
end()
const;
Array< ThreadRef > m_thread
Definition: ThreadSet.h:34
shared_ptr< ThreadSet > Ref
Definition: ThreadSet.h:24
int numStarted() const
Definition: ThreadSet.cpp:15
GMutex m_lock
Definition: ThreadSet.h:31
Mutual exclusion lock used for synchronization.
Definition: GMutex.h:76
SpawnBehavior
Definition: SpawnBehavior.h:4
Dynamic 1D array tuned for performance.
Definition: Array.h:95
Iterator begin()
Definition: ThreadSet.cpp:150
shared_ptr< Thread > ThreadRef
Definition: ThreadSet.h:23
void start(SpawnBehavior lastThreadBehavior=USE_NEW_THREAD) const
Definition: ThreadSet.cpp:29
bool contains(const ThreadRef &t) const
Definition: ThreadSet.cpp:138
void waitForCompletion() const
Definition: ThreadSet.cpp:74
Definition: ReferenceCount.h:24
int insert(const ThreadRef &t)
Definition: ThreadSet.cpp:109
Array< ThreadRef >::Iterator Iterator
Definition: ThreadSet.h:25
void clear()
Definition: ThreadSet.cpp:102
Array< ThreadRef >::ConstIterator ConstIterator
Definition: ThreadSet.h:26
Definition: SpawnBehavior.h:4
int size() const
Definition: ThreadSet.cpp:6
Definition: ThreadSet.h:18
Iterator end()
Definition: ThreadSet.cpp:155
int removeCompleted()
Definition: ThreadSet.cpp:87
void terminate() const
Definition: ThreadSet.cpp:62
GThread Thread
Definition: ThreadSet.h:21