5
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief RTEMS File System Mutex |
---|
5 | * @ingroup rtems_rfs |
---|
6 | */ |
---|
7 | /* |
---|
8 | * COPYRIGHT (c) 2010 Chris Johns <chrisj@rtems.org> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/rfs/rtems-rfs-mutex.h> |
---|
20 | |
---|
21 | int |
---|
22 | rtems_rfs_mutex_create (rtems_rfs_mutex* mutex) |
---|
23 | { |
---|
24 | #if __rtems__ |
---|
25 | rtems_recursive_mutex_init(mutex, "RFS"); |
---|
26 | #endif |
---|
27 | return 0; |
---|
28 | } |
---|
29 | |
---|
30 | int |
---|
31 | rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex) |
---|
32 | { |
---|
33 | #if __rtems__ |
---|
34 | rtems_recursive_mutex_destroy(mutex); |
---|
35 | #endif |
---|
36 | return 0; |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.