source: rtems/cpukit/include/rtems/score/muteximpl.h @ 7ebce359

Last change on this file since 7ebce359 was 7ebce359, checked in by Joel Sherrill <joel@…>, on 02/16/22 at 21:15:58

cpukit/include/rtems/score/[a-r]*.h: Change license to BSD-2

Updates #3053.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1/* SPDX-License-Identifier: BSD-2-Clause */
2
3/**
4 * @file
5 *
6 * @ingroup RTEMSScoreSyslockMutex
7 *
8 * @brief This header file provides the interfaces of the
9 *   @ref RTEMSScoreSyslockMutex.
10 */
11
12/*
13 * Copyright (c) 2015, 2017 embedded brains GmbH.  All rights reserved.
14 *
15 *  embedded brains GmbH
16 *  Dornierstr. 4
17 *  82178 Puchheim
18 *  Germany
19 *  <rtems@embedded-brains.de>
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions
23 * are met:
24 * 1. Redistributions of source code must retain the above copyright
25 *    notice, this list of conditions and the following disclaimer.
26 * 2. Redistributions in binary form must reproduce the above copyright
27 *    notice, this list of conditions and the following disclaimer in the
28 *    documentation and/or other materials provided with the distribution.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
34 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
37 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
38 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 * POSSIBILITY OF SUCH DAMAGE.
41 */
42
43#ifndef _RTEMS_SCORE_MUTEXIMPL_H
44#define _RTEMS_SCORE_MUTEXIMPL_H
45
46#include <rtems/score/threadqimpl.h>
47
48#ifdef __cplusplus
49extern "C" {
50#endif /* __cplusplus */
51
52/**
53 * @defgroup RTEMSScoreSyslockMutex System Lock Mutex Support
54 *
55 * @ingroup RTEMSScore
56 *
57 * @brief The System Lock Mutex Support helps to implement directives which use
58 *   data structures compatible with the data structures defined by the Newlib
59 *   provided <sys/lock.h> header file.
60 *
61 * @{
62 */
63
64typedef struct {
65  Thread_queue_Syslock_queue Queue;
66} Mutex_Control;
67
68typedef struct {
69  Mutex_Control Mutex;
70  unsigned int nest_level;
71} Mutex_recursive_Control;
72
73/** @} */
74
75#ifdef __cplusplus
76}
77#endif /* __cplusplus */
78
79#endif /* _RTEMS_SCORE_MUTEXIMPL_H */
Note: See TracBrowser for help on using the repository browser.