]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/threads.c
tableprinter: removed some obsolete FIXME, added some comments
[libucw.git] / ucw / threads.c
index 0cc958f6b93dcc63a0154480d0b9af30e5688545..d9100119f601210692f59e6c58b4704c4dac2a85 100644 (file)
@@ -7,8 +7,8 @@
  *     of the GNU Lesser General Public License.
  */
 
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/threads.h"
+#include <ucw/lib.h>
+#include <ucw/threads.h>
 
 #ifdef CONFIG_UCW_THREADS
 
 
 #ifdef CONFIG_UCW_THREADS
 
@@ -67,7 +67,7 @@ ucwlib_tid(void)
 
 /*** Thread context ***/
 
 
 /*** Thread context ***/
 
-static void CONSTRUCTOR
+static void CONSTRUCTOR_WITH_PRIORITY(10000)
 ucwlib_threads_init_master(void)
 {
   pthread_mutex_init(&ucwlib_master_mutex, NULL);
 ucwlib_threads_init_master(void)
 {
   pthread_mutex_init(&ucwlib_master_mutex, NULL);
@@ -95,7 +95,7 @@ ucwlib_free_thread_context(void *p)
   xfree(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)
 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 */
 
 
 #else /* !CONFIG_UCW_THREADS */
 
-struct ucwlib_context default_ucwlib_context;
+struct ucwlib_context ucwlib_default_context;
 
 #endif
 
 
 #endif