Unrelated to the thread scheduling problem, the static initializers for
barriers and condition variables (PTH_BARRIER_INIT() and PTH_COND_INIT) are
broken in 1.4.0. Fixed in the patch below. 

*** pth.h.in.orig       Mon Jul 23 17:28:10 2001
--- pth.h.in    Mon Jul 23 17:29:13 2001
***************
*** 244,255 ****
  #define PTH_COND_SIGNALED            _BIT(1)
  #define PTH_COND_BROADCAST           _BIT(2)
  #define PTH_COND_HANDLED             _BIT(3)
! #define PTH_COND_INIT                { PTH_COND_INITIALIZED }
  
     /* barrier variable values */
  #define PTH_BARRIER_INITIALIZED      _BIT(0)
! #define PTH_BARRIER_INIT(threshold)  { PTH_BARRIER_INITIALIZED, (threshold), 0, 0, \
!                                        PTH_MUTEX_INIT, PTH_COND_INIT }
  #define PTH_BARRIER_HEADLIGHT        (-1)
  #define PTH_BARRIER_TAILLIGHT        (-2)
  
--- 244,255 ----
  #define PTH_COND_SIGNALED            _BIT(1)
  #define PTH_COND_BROADCAST           _BIT(2)
  #define PTH_COND_HANDLED             _BIT(3)
! #define PTH_COND_INIT                { PTH_COND_INITIALIZED, 0 }
  
     /* barrier variable values */
  #define PTH_BARRIER_INITIALIZED      _BIT(0)
! #define PTH_BARRIER_INIT(threshold)  { PTH_BARRIER_INITIALIZED, (threshold), 
(threshold), 0, \
!                                        PTH_COND_INIT, PTH_MUTEX_INIT }
  #define PTH_BARRIER_HEADLIGHT        (-1)
  #define PTH_BARRIER_TAILLIGHT        (-2)
  
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to