]> sourceware.org Git - glibc.git/blobdiff - sysdeps/mach/hurd/tls.h
htl: Reimplement GSCOPE
[glibc.git] / sysdeps / mach / hurd / tls.h
index f83956d3d7ca4f9fdded6a2ca71f7fc0752ccb4c..8e66d5ff534e520d0deaabb1918645fb969043b6 100644 (file)
 # define GET_DTV(descr) \
   (((tcbhead_t *) (descr))->dtv)
 
-/* Global scope switch support.  */
-#define THREAD_GSCOPE_IN_TCB      0
-#define THREAD_GSCOPE_GLOBAL
-#define THREAD_GSCOPE_SET_FLAG() \
-  atomic_exchange_and_add_acq (&GL(dl_thread_gscope_count), 1)
-#define THREAD_GSCOPE_RESET_FLAG() \
-  do                                                                         \
-    if (atomic_exchange_and_add_rel (&GL(dl_thread_gscope_count), -1) == 1)   \
-      lll_wake (GL(dl_thread_gscope_count), 0);                                      \
-  while (0)
-#define THREAD_GSCOPE_WAIT() \
-  do                                                                         \
-    {                                                                        \
-      int count;                                                             \
-      atomic_write_barrier ();                                               \
-      while ((count = GL(dl_thread_gscope_count)))                           \
-        lll_wait (GL(dl_thread_gscope_count), count, 0);                     \
-    }                                                                        \
-  while (0)
-
 #endif /* !ASSEMBLER */
 
 
This page took 0.027979 seconds and 5 git commands to generate.