X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fthreads.h;h=c70354fb71dafb8ce8e6418de946dd45d8b1624d;hb=5f2e7e93768113f1e80ac2502e670632762fb696;hp=3c8b03afb9aa51a735abb371d5f48ca4eb0662d7;hpb=9c5d20f9afd457a9d16e681475c6ea59c33de2d0;p=libucw.git diff --git a/lib/threads.h b/lib/threads.h index 3c8b03af..c70354fb 100644 --- a/lib/threads.h +++ b/lib/threads.h @@ -13,7 +13,10 @@ /* This structure holds per-thread data */ struct ucwlib_context { + int thread_id; // Thread ID (either kernel tid or a counter) int temp_counter; // Counter for fb-temp.c + struct asio_queue *io_queue; // Async I/O queue for fb-direct.c + sh_sighandler_t *signal_handlers; // Signal handlers for sighandler.c }; struct ucwlib_context *ucwlib_thread_context(void); @@ -23,4 +26,10 @@ struct ucwlib_context *ucwlib_thread_context(void); void ucwlib_lock(void); void ucwlib_unlock(void); +#ifdef CONFIG_UCW_THREADS + +extern uns default_thread_stack_size; + +#endif + #endif