X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fthreads.h;h=3c1f29b799ccf292e44ae38df900d23e5fe67326;hb=ae2b00416589dfe798fc40f0575f62a0c664798f;hp=a0d3f59f9b150aba6a8454db6db43b8c0f6c864f;hpb=04aeb72dc19dcaaa3012c691407c8016c3842ed5;p=libucw.git diff --git a/ucw/threads.h b/ucw/threads.h index a0d3f59f..3c1f29b7 100644 --- a/ucw/threads.h +++ b/ucw/threads.h @@ -1,7 +1,7 @@ /* * The UCW Library -- Threading Helpers * - * (c) 2006--2010 Martin Mares + * (c) 2006--2012 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -10,7 +10,7 @@ #ifndef _UCW_THREADS_H #define _UCW_THREADS_H -#include "ucw/sighandler.h" +#include /* This structure holds per-thread data */ @@ -20,6 +20,11 @@ struct ucwlib_context { struct asio_queue *io_queue; // Async I/O queue for fb-direct.c ucw_sighandler_t *signal_handlers; // Signal handlers for sighandler.c struct main_context *main_context; // Current context for mainloop.c + struct cf_context *cf_context; // Current context for configuration parser + // Resources and transactions: + struct respool *current_respool; // Current resource pool + struct mempool *trans_pool; // Transaction mempool + struct trans *current_trans; // Currently open transaction }; #ifdef CONFIG_UCW_THREADS