2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
13 using namespace BSupportKit
;
14 using BSupportKit::BPrivate::JobQueue
;
19 Worker(JobQueue
& queue
);
25 virtual status_t
Process();
26 virtual bigtime_t
Timeout() const;
27 virtual const char* Name() const;
28 virtual status_t
Run(BJob
* job
);
31 static status_t
_Process(void* self
);
39 class MainWorker
: public Worker
{
41 MainWorker(JobQueue
& queue
);
44 virtual bigtime_t
Timeout() const;
45 virtual const char* Name() const;
46 virtual status_t
Run(BJob
* job
);
49 int32 fMaxWorkerCount
;