#include <KoJobsListPolicy.h>
Fonctions membres publiques | |
KoJobsListPolicy () | |
constructor | |
void | addJob (ThreadWeaver::Job *job) |
add a job that the policy will manage | |
bool | canRun (ThreadWeaver::Job *job) |
reimplemented method | |
void | free (ThreadWeaver::Job *job) |
reimplemented method | |
void | release (ThreadWeaver::Job *job) |
reimplemented method | |
void | destructed (ThreadWeaver::Job *job) |
reimplemented method | |
const QList< ThreadWeaver::Job * > | jobs () |
int | count () |
return the amount of jobs that is curently helt | |
void | lock () |
void | unlock () |
Attributs privés | |
QList< ThreadWeaver::Job * > | m_jobs |
QMutex | mutex |
Définition à la ligne 33 du fichier KoJobsListPolicy.h.
KoJobsListPolicy::KoJobsListPolicy | ( | ) |
void KoJobsListPolicy::addJob | ( | ThreadWeaver::Job * | job | ) |
add a job that the policy will manage
Référencé par KoSimpleQueuedPolicy::schedule(), KoQueuedPolicy::schedule(), et KoOnlyLastPolicy::schedule().
Voici le graphe d'appel pour cette fonction :
bool KoJobsListPolicy::canRun | ( | ThreadWeaver::Job * | job | ) |
reimplemented method
void KoJobsListPolicy::free | ( | ThreadWeaver::Job * | job | ) |
reimplemented method
Référencé par KoOnlyLastPolicy::schedule().
Voici le graphe d'appel pour cette fonction :
void KoJobsListPolicy::release | ( | ThreadWeaver::Job * | job | ) |
reimplemented method
void KoJobsListPolicy::destructed | ( | ThreadWeaver::Job * | job | ) |
reimplemented method
const QList< Job * > KoJobsListPolicy::jobs | ( | ) |
return a (copy of) the list of jobs. Note that if you actually plan to use the list, by iterating over it or even more, you should lock this policy using lock() which guarentees the list to stay unchanged at least until you call unlock()
Définition à la ligne 50 du fichier KoJobsListPolicy.cpp.
Référencé par KoOnlyLastPolicy::schedule().
Voici le graphe d'appel pour cette fonction :
int KoJobsListPolicy::count | ( | ) |
return the amount of jobs that is curently helt
Définition à la ligne 65 du fichier KoJobsListPolicy.cpp.
Référencé par KoAction::jobCount().
Voici le graphe d'appel pour cette fonction :
void KoJobsListPolicy::lock | ( | ) | [inline] |
lock this policy from modifications by other threads. Will also disallow new jobs to be started. You should call unlock() afterwards.
Définition à la ligne 64 du fichier KoJobsListPolicy.h.
Références mutex.
Référencé par KoOnlyLastPolicy::schedule().
Voici le graphe d'appel pour cette fonction :
void KoJobsListPolicy::unlock | ( | ) | [inline] |
unlock.
Définition à la ligne 69 du fichier KoJobsListPolicy.h.
Références mutex.
Référencé par KoOnlyLastPolicy::schedule().
Voici le graphe d'appel pour cette fonction :
QList<ThreadWeaver::Job*> KoJobsListPolicy::m_jobs [private] |
QMutex KoJobsListPolicy::mutex [private] |