Changeset View
Changeset View
Standalone View
Standalone View
src/core/scheduler.h
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | 113 | public: | |||
---|---|---|---|---|---|
114 | /** | 114 | /** | ||
115 | * Register @p job with the scheduler. | 115 | * Register @p job with the scheduler. | ||
116 | * The default is to create a new slave for the job if no slave | 116 | * The default is to create a new slave for the job if no slave | ||
117 | * is available. This can be changed by calling setJobPriority. | 117 | * is available. This can be changed by calling setJobPriority. | ||
118 | * @param job the job to register | 118 | * @param job the job to register | ||
119 | */ | 119 | */ | ||
120 | static void doJob(SimpleJob *job); | 120 | static void doJob(SimpleJob *job); | ||
121 | 121 | | |||
122 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(4, 5) | ||||
122 | /** | 123 | /** | ||
123 | * Schedules @p job scheduled for later execution. | 124 | * Schedules @p job scheduled for later execution. | ||
124 | * This method is deprecated and just sets the job's priority to 1. It is | 125 | * This method is deprecated and just sets the job's priority to 1. It is | ||
125 | * recommended to replace calls to scheduleJob(job) with setJobPriority(job, 1). | 126 | * recommended to replace calls to scheduleJob(job) with setJobPriority(job, 1). | ||
126 | * @param job the job to schedule | 127 | * @param job the job to schedule | ||
128 | * @deprecated Since 4.5, use setJobPriority(SimpleJob *job, int priority) | ||||
127 | */ | 129 | */ | ||
128 | #ifndef KIOCORE_NO_DEPRECATED | 130 | KIOCORE_DEPRECATED_VERSION(4, 5, "Use Scheduler::setJobPriority(SimpleJob *, int )") | ||
129 | KIOCORE_DEPRECATED static void scheduleJob(SimpleJob *job); | 131 | static void scheduleJob(SimpleJob *job); | ||
130 | #endif | 132 | #endif | ||
131 | 133 | | |||
132 | /** | 134 | /** | ||
133 | * Changes the priority of @p job; jobs of the same priority run in the order in which | 135 | * Changes the priority of @p job; jobs of the same priority run in the order in which | ||
134 | * they were created. Jobs of lower numeric priority always run before any | 136 | * they were created. Jobs of lower numeric priority always run before any | ||
135 | * waiting jobs of higher numeric priority. The range of priority is -10 to 10, | 137 | * waiting jobs of higher numeric priority. The range of priority is -10 to 10, | ||
136 | * the default priority of jobs is 0. | 138 | * the default priority of jobs is 0. | ||
137 | * @param job the job to change | 139 | * @param job the job to change | ||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |