X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fthreads.c;h=d9100119f601210692f59e6c58b4704c4dac2a85;hb=6c4c397f94ec5f5df6bcc178fb5fa4e84d3505fc;hp=bd2423108f6536319be0ff7c441a4a9c0b4a3231;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/threads.c b/ucw/threads.c index bd242310..d9100119 100644 --- a/ucw/threads.c +++ b/ucw/threads.c @@ -67,7 +67,7 @@ ucwlib_tid(void) /*** Thread context ***/ -static void CONSTRUCTOR +static void CONSTRUCTOR_WITH_PRIORITY(10000) ucwlib_threads_init_master(void) { pthread_mutex_init(&ucwlib_master_mutex, NULL); @@ -95,7 +95,7 @@ ucwlib_free_thread_context(void *p) xfree(p); } -static void CONSTRUCTOR +static void CONSTRUCTOR_WITH_PRIORITY(10000) ucwlib_threads_init(void) { if (pthread_key_create(&ucwlib_context_key, ucwlib_free_thread_context) < 0) @@ -119,7 +119,7 @@ ucwlib_thread_context(void) #else /* !CONFIG_UCW_THREADS */ -struct ucwlib_context default_ucwlib_context; +struct ucwlib_context ucwlib_default_context; #endif