bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checkin of glthread/glcond modules


From: Bruno Haible
Subject: Re: checkin of glthread/glcond modules
Date: Mon, 18 Aug 2008 12:49:01 +0200
User-agent: KMail/1.5.4

One more change in the 'thread' module (fixes a link error):

2008-08-18  Bruno Haible  <address@hidden>

        * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
        pthread_in_use().

*** lib/glthread/thread.h.orig  2008-08-18 12:35:16.000000000 +0200
--- lib/glthread/thread.h       2008-08-18 12:25:15.000000000 +0200
***************
*** 250,262 ****
  # define glthread_create(THREADP, FUNC, ARG) \
      (thread_in_use () ? thr_create (NULL, 0, FUNC, ARG, 0, THREADP) : 0)
  # define glthread_sigmask(HOW, SET, OSET) \
!     (pthread_in_use () ? sigprocmask (HOW, SET, OSET) : 0)
  # define glthread_join(THREAD, RETVALP) \
!     (pthread_in_use () ? thr_join (THREAD, NULL, RETVALP) : 0)
  # define gl_thread_self() \
!     (pthread_in_use () ? (void *) thr_self () : 0)
  # define gl_thread_exit(RETVAL) \
!     (pthread_in_use () ? thr_exit (RETVAL) : 0)
  # define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
  
  # ifdef __cplusplus
--- 250,262 ----
  # define glthread_create(THREADP, FUNC, ARG) \
      (thread_in_use () ? thr_create (NULL, 0, FUNC, ARG, 0, THREADP) : 0)
  # define glthread_sigmask(HOW, SET, OSET) \
!     (thread_in_use () ? sigprocmask (HOW, SET, OSET) : 0)
  # define glthread_join(THREAD, RETVALP) \
!     (thread_in_use () ? thr_join (THREAD, NULL, RETVALP) : 0)
  # define gl_thread_self() \
!     (thread_in_use () ? (void *) thr_self () : 0)
  # define gl_thread_exit(RETVAL) \
!     (thread_in_use () ? thr_exit (RETVAL) : 0)
  # define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
  
  # ifdef __cplusplus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]