ThreadWeaver
9 #ifndef THREADWEAVER_QUEUEING_H
10 #define THREADWEAVER_QUEUEING_H
12 #include "collection.h"
13 #include "jobinterface.h"
14 #include "jobpointer.h"
16 #include "managedjobpointer.h"
17 #include "qobjectdecorator.h"
20 namespace ThreadWeaver
34 JobInterface *
test =
static_cast<JobInterface *
>(job);
40 inline JobPointer make_job_raw(JobInterface *job)
42 return ManagedJobPointer<JobInterface>(job);
47 JobPointer enqueue(Queue *weaver, T t)
49 JobPointer ret = make_job(t);
57 JobInterface *
test =
static_cast<JobInterface *
>(t);
66 inline JobPointer enqueue<JobPointer>(Queue *weaver, JobPointer job)
74 JobPointer enqueue(T t)
80 inline JobPointer enqueue_raw(Queue *weaver, JobInterface *job)
82 return enqueue(weaver, make_job_raw(job));
86 inline JobPointer enqueue_raw(JobInterface *job)
93 #endif // THREADWEAVER_QUEUEING_H
static ThreadWeaver::Queue * instance()
Access the application-global Queue.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:10:21 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.