Flag to make thread jobs optional

This commit is contained in:
Christian Thaeter 2008-12-23 09:06:55 +01:00
parent 121599dc89
commit 2126b25604

View file

@ -62,6 +62,15 @@ enum lumiera_thread_class
LUMIERA_THREAD_BATCH,
/** Something to do when there is really nothing else to do **/
LUMIERA_THREAD_IDLE,
/**
* flag to let the decision to run the function in a thread open to the backend.
* depending on load it might decide to run it sequentially.
* This has some constraints:
* The condition variable to signal the finish of the thread must not be used.
* The Thread must be very careful with locking, better don't.
**/
LUMIERA_THREAD_OR_NOT = 1<<16
};
/**