Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 10:17:42 -0700 (PDT)
From:      Jason Evans <jasone@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_cancel.c uthread_cond.c uthread_mutex.c uthread_resume_np.c uthread_suspend_np.c
Message-ID:  <200006141717.KAA97865@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jasone      2000/06/14 10:17:42 PDT

  Modified files:
    lib/libc_r/uthread   pthread_private.h uthread_cancel.c 
                         uthread_cond.c uthread_mutex.c 
                         uthread_resume_np.c uthread_suspend_np.c 
  Log:
  pthread_mutex_lock(), pthread_cond_trywait(), and pthread_cond_wait() are
  not allowed to return EINTR, but use of pthread_suspend_np() could cause
  EINTR to be returned.  To fix this, restructure pthread_suspend_np() so that
  it does not interrupt a thread that is waiting on a mutex or condition, and
  keep enough state around that pthread_resume_np() can fix things up
  afterwards.
  
  Reviewed by:	deischen
  
  Revision  Changes    Path
  1.41      +13 -2     src/lib/libc_r/uthread/pthread_private.h
  1.5       +15 -10    src/lib/libc_r/uthread/uthread_cancel.c
  1.24      +23 -7     src/lib/libc_r/uthread/uthread_cond.c
  1.22      +43 -17    src/lib/libc_r/uthread/uthread_mutex.c
  1.9       +27 -6     src/lib/libc_r/uthread/uthread_resume_np.c
  1.9       +13 -3     src/lib/libc_r/uthread/uthread_suspend_np.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006141717.KAA97865>