]> mj.ucw.cz Git - libucw.git/blobdiff - lib/threads.h
Implemented swapping in/out buckets.
[libucw.git] / lib / threads.h
index 70534ebbfc265678802c3acba6226f76aa7c3036..c70354fb71dafb8ce8e6418de946dd45d8b1624d 100644 (file)
 /* This structure holds per-thread data */
 
 struct ucwlib_context {
 /* 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
   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);
 };
 
 struct ucwlib_context *ucwlib_thread_context(void);
@@ -24,4 +26,10 @@ struct ucwlib_context *ucwlib_thread_context(void);
 void ucwlib_lock(void);
 void ucwlib_unlock(void);
 
 void ucwlib_lock(void);
 void ucwlib_unlock(void);
 
+#ifdef CONFIG_UCW_THREADS
+
+extern uns default_thread_stack_size;
+
+#endif
+
 #endif
 #endif