]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/threads.c
Opt: strdup -> xstrdup
[libucw.git] / ucw / threads.c
index bd2423108f6536319be0ff7c441a4a9c0b4a3231..1377733bc2660ce5d8cb0cdac289a2e6d0a35bb1 100644 (file)
@@ -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)