source: rtems/cpukit/libfs/src/rfs/rtems-rfs-mutex.c @ 0ec9bbc

5
Last change on this file since 0ec9bbc was 0940648f, checked in by Sebastian Huber <sebastian.huber@…>, on 12/13/17 at 15:23:34

RFS: Use self-contained recursive mutex

Update #2843.

  • Property mode set to 100644
File size: 650 bytes
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
21int
22rtems_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
30int
31rtems_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.