aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/processing/processor.h
Commit message (Collapse)AuthorAgeFilesLines
* apple: Redefine some additional clashing Mach typesMartin Willi2014-12-161-0/+2
| | | | | | While they usually are not included in a normal strongSwan build, the XPC header indirectly defines these Mach types. To build charon-xpc, which uses both XPC and strongSwan includes, we have to redefine these types.
* processor: remove the now unused get_threads() method againMartin Willi2013-07-181-10/+0
|
* processor: add an execute_job() method to directly execute an important jobMartin Willi2013-07-181-0/+10
| | | | | | | If all worker threads are busy and waiting for an event, we must ensure that a job delivering that event gets executed. This new method has this property for CRITICAL jobs, using a worker if we have one, but executing the job directly if not.
* processor: add a getter for the threads passed to set_threads()Martin Willi2013-07-181-0/+10
|
* Centralized thread cancellation in processor_tTobias Brunner2012-06-251-2/+10
| | | | | | | | | | This ensures that no threads are active when plugins and the rest of the daemon are unloaded. callback_job_t was simplified a lot in the process as its main functionality is now contained in processor_t. The parent-child relationships were abandoned as these were only needed to simplify job cancellation.
* Give processor_t more control over the lifecycle of a jobTobias Brunner2012-06-251-1/+1
| | | | | | | | | | | Jobs are now destroyed by the processor, but they are allowed to reschedule themselves. That is, parts of the reschedule functionality already provided by callback_job_t is moved to the processor. Not yet fully supported is JOB_REQUEUE_DIRECT and canceling jobs. Note: job_t.destroy() is now called not only for queued jobs but also after execution or cancellation of jobs. job_t.status can be used to decide what to do in said method.
* Count number of threads active in each class, and reserve threads only if ↵Martin Willi2011-05-161-1/+9
| | | | none active
* Processor job scheduling respects job priority classesMartin Willi2011-05-161-2/+3
|
* Moved scheduler and thread pool to libstrongswan.Tobias Brunner2010-09-021-0/+94