remove gc pthread redirects entirely
authorAndy Wingo <wingo@pobox.com>
Thu, 26 May 2011 16:43:09 +0000 (18:43 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 26 May 2011 16:43:09 +0000 (18:43 +0200)
* libguile/pthread-threads.h: As an experiment, just define
  scm_i_pthread_create et al to their pthread_* functions, instead of
  the GC_ ones.  It seems sufficient, given that all uses of Guile have
  to go through scm_with_guile anyway...  Passes tests on my machine.
  Committing to give buildbots a go at it.

libguile/pthread-threads.h

index 4c67b18..b5fae4e 100644 (file)
 #include <pthread.h>
 #include <sched.h>
 
-/* `libgc' defines wrapper procedures for pthread calls.  */
-#include "libguile/bdw-gc.h"
-
 /* Threads 
 */
 #define scm_i_pthread_t                     pthread_t
 #define scm_i_pthread_self                  pthread_self
-#define scm_i_pthread_create                GC_pthread_create
-#define scm_i_pthread_detach                GC_pthread_detach
+#define scm_i_pthread_create                pthread_create
+#define scm_i_pthread_detach                pthread_detach
 
-#if SCM_HAVE_GC_PTHREAD_EXIT
-#define scm_i_pthread_exit                  GC_pthread_exit
-#else
 #define scm_i_pthread_exit                  pthread_exit
-#endif
-
-#if SCM_HAVE_GC_PTHREAD_CANCEL
-#define scm_i_pthread_cancel                GC_pthread_cancel
-#else
 #define scm_i_pthread_cancel                pthread_cancel
-#endif
 
 #define scm_i_pthread_cleanup_push          pthread_cleanup_push
 #define scm_i_pthread_cleanup_pop           pthread_cleanup_pop
 
 /* Signals
  */
-#if SCM_HAVE_GC_PTHREAD_SIGMASK
-#define scm_i_pthread_sigmask               GC_pthread_sigmask
-#else
 #define scm_i_pthread_sigmask               pthread_sigmask
-#endif
 
 /* Mutexes
  */