DragonFly BSD
DragonFly commits List (threaded) for 2012-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: libpthread: Add sem_timedwait().

From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Dec 2012 11:39:59 -0800 (PST)

commit 775923a8d67ea35ff5fb2fc616d36ae4acd5e4ff
Author: Sascha Wildner <saw@online.de>
Date:   Tue Dec 25 20:37:29 2012 +0100

    libpthread: Add sem_timedwait().
    It was commented out and I'm not sure why.
    It needed a bit of adjustment to properly check the nanoseconds field but
    with that, it passes all eleven tests of the Open POSIX Test Suite. Other
    people (thesjg, vsrinivas) have tested and used it too in the past.
    While here, also add a manual page (taken from FreeBSD).
    In-discussion-with: vsrinivas

Summary of changes:
 lib/libc/gen/_pthread_stubs.c                      |    1 +
 lib/libpthread/Makefile                            |    1 +
 .../sem_timedwait.3}                               |  119 +++++++++++---------
 lib/libthread_xu/thread/thr_sem.c                  |    7 +-
 sys/sys/semaphore.h                                |    3 +-
 5 files changed, 73 insertions(+), 58 deletions(-)
 copy lib/{libc/gen/posix_spawn_file_actions_init.3 => libpthread/sem_timedwait.3} (52%)


DragonFly BSD source repository

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