2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * rx_kmutex.c - mutex and condition variable macros for kernel environment.
13 * NetBSD implementation.
16 #include <afsconfig.h>
17 #include "afs/param.h"
19 #if defined(AFS_NBSD50_ENV)
21 #include "rx/rx_kcommon.h"
22 #include "rx_kmutex.h"
23 #include "rx/rx_kernel.h"
26 afs_cv_wait(afs_kcondvar_t *cv, afs_kmutex_t *m, int sigok)
28 int haveGlock = ISAFS_GLOCK();
34 if (cv_wait_sig(cv, m) == 0)
48 afs_cv_timedwait(afs_kcondvar_t *cv, afs_kmutex_t *m, int t, int sigok)
50 int haveGlock = ISAFS_GLOCK();
56 if (cv_timedwait_sig(cv, m, t) == 0)
59 cv_timedwait(cv, m, t);
69 #endif /* AFS_NBSD50_ENV */