Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread unconst the timestamp
details: https://anonhg.NetBSD.org/src/rev/0bdc3929d01a
branches: trunk
changeset: 358011:0bdc3929d01a
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 08 03:08:19 2017 +0000
description:
unconst the timestamp
diffstat:
lib/libpthread/pthread_cond.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 68cf573ea8e6 -r 0bdc3929d01a lib/libpthread/pthread_cond.c
--- a/lib/libpthread/pthread_cond.c Fri Dec 08 01:20:52 2017 +0000
+++ b/lib/libpthread/pthread_cond.c Fri Dec 08 03:08:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_cond.c,v 1.64 2016/07/03 14:24:58 christos Exp $ */
+/* $NetBSD: pthread_cond.c,v 1.65 2017/12/08 03:08:19 christos Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_cond.c,v 1.64 2016/07/03 14:24:58 christos Exp $");
+__RCSID("$NetBSD: pthread_cond.c,v 1.65 2017/12/08 03:08:19 christos Exp $");
#include <stdlib.h>
#include <errno.h>
@@ -166,8 +166,9 @@
self->pt_willpark = 0;
self->pt_blocking++;
do {
- retval = _lwp_park(clkid, TIMER_ABSTIME, abstime,
- self->pt_unpark, __UNVOLATILE(&mutex->ptm_waiters),
+ retval = _lwp_park(clkid, TIMER_ABSTIME,
+ __UNCONST(abstime), self->pt_unpark,
+ __UNVOLATILE(&mutex->ptm_waiters),
__UNVOLATILE(&mutex->ptm_waiters));
self->pt_unpark = 0;
} while (retval == -1 && errno == ESRCH);
Home |
Main Index |
Thread Index |
Old Index