From 2126b25604ea1d87d0db680e36b635ad8570681f Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Tue, 23 Dec 2008 09:06:55 +0100 Subject: [PATCH] Flag to make thread jobs optional --- src/backend/threads.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/backend/threads.h b/src/backend/threads.h index 38c0e12f7..cca5594dd 100644 --- a/src/backend/threads.h +++ b/src/backend/threads.h @@ -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 }; /**