cvs commit: src/lib/libc/gen sem.c

Daniel Eischen deischen at FreeBSD.org
Mon Feb 2 21:47:21 PST 2004


deischen    2004/02/02 21:47:19 PST

  FreeBSD src repository

  Modified files:
    lib/libc/gen         sem.c 
  Log:
  Modify the implementation of libc semaphores so that they can be
  overridden by the threads library to provide a userland version
  of non-pshared semaphores and cancellation points.  Also add
  a sem_timedwait().
  
  The libc version of semaphores always uses kernel semaphores
  regardless of whether pshared is set or not.  When threads are
  not present, it is difficult to get sem_wait() or sem_timedwait()
  to do the right thing (since pthread_cond_timedwait() and
  pthread_cond_wait() are stubs in libc and just return immediately).
  
  Revision  Changes    Path
  1.8       +132 -146  src/lib/libc/gen/sem.c


More information about the cvs-all mailing list