]> mj.ucw.cz Git - libucw.git/blob - lib/threads-conf.c
Merged mainline with parallel shep-reap:
[libucw.git] / lib / threads-conf.c
1 /*
2  *      The UCW Library -- Threading Helpers
3  *
4  *      (c) 2006 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #include "lib/lib.h"
11 #include "lib/threads.h"
12 #include "lib/conf.h"
13
14 uns default_thread_stack_size = 65556;
15
16 static struct cf_section threads_config = {
17   CF_ITEMS {
18     CF_UNS("DefaultStackSize", &default_thread_stack_size),
19     CF_END
20   }
21 };
22
23 static void CONSTRUCTOR
24 ucwlib_threads_conf_init(void)
25 {
26   cf_declare_section("Threads", &threads_config, 0);
27 }