]> mj.ucw.cz Git - libucw.git/commitdiff
We will need to remember the current transaction in per-thread data.
authorMartin Mares <mj@ucw.cz>
Sat, 30 Aug 2008 17:25:21 +0000 (19:25 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 29 Mar 2011 10:55:04 +0000 (12:55 +0200)
ucw/threads.h

index 9334e29e317434a2cde4f1d3e2b3c5f77ddb2383..9f748dddcc11128e92ba054d6bf5fa168bebc167 100644 (file)
@@ -18,6 +18,8 @@ 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 mempool *trans_pool;          // Transaction mempool for trans.c
+  struct trans *current_trans;         // Currently open transaction for trans.c
 };
 
 #ifdef CONFIG_UCW_THREADS