krita

KisThreadPool Class Reference

#include <kis_thread_pool.h>

Inheritance diagram for KisThreadPool:

KisThread

List of all members.


Detailed Description

A thread pool starts executing threads some time after they are added, running a maximum number of threads at one time.

The pool takes ownership of the threads and _deletes_ them once they have run. This means that you cannot add getters for important data to threads you feed the threadpool. Instead, post the data using a customevent.

Definition at line 36 of file kis_thread_pool.h.


Public Member Functions

void enqueue (KisThread *thread)
void dequeue (KisThread *thread)
void run ()

Static Public Member Functions

static KisThreadPoolinstance ()

The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys