e7514eea775e4d85cd8b8ddca5287487236b7402
[openafs.git] / src / rx / DARWIN / rx_kmutex.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
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
8  */
9
10 /*
11  * rx_kmutex.c - mutex and condition variable macros for kernel environment.
12  *
13  * MACOS implementation.
14  */
15
16 #include <afsconfig.h>
17 #include "afs/param.h"
18
19 RCSID
20     ("$Header$");
21
22 #ifndef AFS_DARWIN80_ENV
23 /*
24  * Currently everything is implemented in rx_kmutex.h
25  */
26 #else
27 lck_grp_t * openafs_lck_grp;
28 static lck_grp_attr_t * openafs_lck_grp_attr;
29 void rx_kmutex_setup(void) {
30     openafs_lck_grp_attr= lck_grp_attr_alloc_init();
31     lck_grp_attr_setstat(openafs_lck_grp_attr);
32
33     openafs_lck_grp = lck_grp_alloc_init("openafs",  openafs_lck_grp_attr);
34     lck_grp_attr_free(openafs_lck_grp_attr);
35     
36 }
37
38 void rx_kmutex_finish(void) {
39     lck_grp_free(openafs_lck_grp);
40 }
41
42 #endif
43
44