8 #ifndef __thread_WorkGang_h__ 9 #define __thread_WorkGang_h__ 27 m_waitForJobs(FALSE) {}
30 void initialize(
void);
32 virtual sp<WorkI> assignment(
void) {
return m_spWorkI; }
33 virtual void run(
sp<WorkI> a_spWorkI,U32 a_threads,
35 virtual void stop(
void);
37 virtual BWORD threadsAlive(
void)
const {
return m_threadsAlive; }
39 virtual BWORD willWaitForJobs(
void)
const {
return m_waitForJobs; }
40 virtual void waitForJobs(BWORD a_wait) { m_waitForJobs=a_wait; }
44 class Worker:
public Thread::Functor
49 virtual ~Worker(
void);
51 virtual void operate(
void);
54 { m_spWorkForceI=spObject; }
73 #endif // __thread_WorkGang_h__ kernel
Definition: namespace.dox:3
Execute a SpannedRange with a Gang.
Definition: WorkGang.h:21
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Execute a Range.
Definition: WorkForceI.h:22
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Queue of tasks.
Definition: JobQueue.h:29