diff options
| author | oster <oster@NetBSD.org> | 2003-12-29 04:56:26 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2003-12-29 04:56:26 +0000 |
| commit | b2b64281151373154a920a3b4e202e3371130159 (patch) | |
| tree | 070d3116447e07d217928516c40f6f23c0ace083 /sys/dev/raidframe/rf_threadstuff.h | |
| parent | a481fc8f48d0835da6840ec884ba5150f8047e4f (diff) | |
Simplify defn's of rf_mutex_init() and rf_mutex_destroy(). Since
neither of these ever fail, no need to have a return value. That
makes all the "error detection" on these functions completely
unneeded. But since we're here, if we don't have a return value, then
why not make these macros? My.. look how things keep shrinking, with
no loss in functionality!
Diffstat (limited to 'sys/dev/raidframe/rf_threadstuff.h')
| -rw-r--r-- | sys/dev/raidframe/rf_threadstuff.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_threadstuff.h b/sys/dev/raidframe/rf_threadstuff.h index 75b2bfe36b1..98ab1957dcc 100644 --- a/sys/dev/raidframe/rf_threadstuff.h +++ b/sys/dev/raidframe/rf_threadstuff.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_threadstuff.h,v 1.13 2002/10/02 21:48:00 oster Exp $ */ +/* $NetBSD: rf_threadstuff.h,v 1.14 2003/12/29 04:56:26 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -181,8 +181,9 @@ struct RF_ThreadGroup_s { } #endif -int rf_mutex_init(struct simplelock *); -int rf_mutex_destroy(struct simplelock *); +#define rf_mutex_init(m) simple_lock_init(m) +#define rf_mutex_destroy(m) + int _rf_create_managed_mutex(RF_ShutdownList_t **, struct simplelock *, char *, int); |
