2 * The UCW Library -- Threading Helpers
4 * (c) 2006 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
13 /* This structure holds per-thread data */
15 struct ucwlib_context {
16 int temp_counter; // Counter for fb-temp.c
17 struct asio_queue *io_queue; // Async I/O queue for fb-direct.c
18 sh_sighandler_t *signal_handlers; // Signal handlers for sighandler.c
21 struct ucwlib_context *ucwlib_thread_context(void);
23 /* Global lock used for initialization, cleanup and other not so frequently accessed global state */
25 void ucwlib_lock(void);
26 void ucwlib_unlock(void);
28 #ifdef CONFIG_UCW_THREADS
30 extern uns default_thread_stack_size;