X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fthreads.c;h=1377733bc2660ce5d8cb0cdac289a2e6d0a35bb1;hb=de636dbe4e9fb2c1f4d29de203d9ff2528206afc;hp=0cc958f6b93dcc63a0154480d0b9af30e5688545;hpb=5f81280e4ec7a5517e94f1c1f53e42fba537fbd8;p=libucw.git diff --git a/ucw/threads.c b/ucw/threads.c index 0cc958f6..1377733b 100644 --- a/ucw/threads.c +++ b/ucw/threads.c @@ -7,8 +7,8 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/threads.h" +#include +#include #ifdef CONFIG_UCW_THREADS @@ -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)