summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-08 16:44:06 +0000
committerrpj <rpj>2001-07-08 16:44:06 +0000
commitf58aab44e671bb39b8afb29804a9ca94c238c523 (patch)
treed1bac0558d5146c6468f8f421f22762f382c6c6e /private.c
parent704925281289e0f937eab045bd327b4275b2e03a (diff)
Barriers fixed and tested more extensively.
* barrier.c: Fix several bugs in all routines. Now passes tests/barrier5.c which is fairly rigorous. There is still a non-optimal work-around for a race condition between the barrier breeched event signal and event wait. Basically the last (signalling) thread to hit the barrier yields to allow any other threads, which may have lost the race, to complete. tests/ChangeLog: * barrier3.c: Fixed. * barrier4.c: Fixed. * barrier5.c: New; proves that all threads in the group reaching the barrier wait and then resume together. Repeats the test using groups of 1 to 16 threads. Each group of threads must negotiate a large number of barriers (10000). * spin4.c: Fixed. * test.h (error_string): Modified the success (0) value.
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/private.c b/private.c
index 4bc1e38..de560c3 100644
--- a/private.c
+++ b/private.c
@@ -766,7 +766,7 @@ ptw32_callUserDestroyRoutines (pthread_t thread)
#define TIMESPEC_TO_FILETIME_OFFSET \
( ((LONGLONG) 27111902 << 32) + (LONGLONG) 3577643008 )
-static void
+static INLINE void
timespec_to_filetime(const struct timespec *ts, FILETIME *ft)
/*
* -------------------------------------------------------------------
@@ -780,7 +780,7 @@ timespec_to_filetime(const struct timespec *ts, FILETIME *ft)
*(LONGLONG *)ft = ts->tv_sec * 10000000 + (ts->tv_nsec + 50) / 100 + TIMESPEC_TO_FILETIME_OFFSET;
}
-static void
+static INLINE void
filetime_to_timespec(const FILETIME *ft, struct timespec *ts)
/*
* -------------------------------------------------------------------