diff options
Diffstat (limited to 'usr/src/uts/common/sys/condvar_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/condvar_impl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/condvar_impl.h b/usr/src/uts/common/sys/condvar_impl.h index 15adcedb93..75c5867375 100644 --- a/usr/src/uts/common/sys/condvar_impl.h +++ b/usr/src/uts/common/sys/condvar_impl.h @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -102,6 +102,11 @@ typedef struct cvwaitlock_s { mutex_exit(&(_c)->cvw_lock); \ } +#define CVW_DESTROY(_c) { \ + mutex_destroy(&(_c)->cvw_lock); \ + cv_destroy(&(_c)->cvw_waiter); \ +} + #ifdef __cplusplus } #endif |