2 * Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold <ingo_weinhold@gmx.de>
28 bool QueueJob(Job
* job
);
29 // acquires a reference, if successful
31 // returns a reference
33 void DeleteJobs(Filter
* filter
);
36 typedef DoublyLinkedList
<Job
> JobList
;
39 pthread_mutex_t fMutex
;
40 pthread_cond_t fNewJobCondition
;
41 bool fMutexInitialized
;
42 bool fNewJobConditionInitialized
;
48 class JobQueue::Filter
{
52 virtual bool FilterJob(Job
* job
) = 0;