5
Last change
on this file since 99fc1d1d was
0b713f89,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/30/16 at 04:59:55
|
score: Rework CORE inherit priority mutex
Provide dedicated seize and surrender methods for inherit priority
mutexes. This eliminates CORE_mutex_Attributes.
|
-
Property mode set to
100644
|
File size:
615 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ScoreAPIMutex |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * COPYRIGHT (c) 1989-2015. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.org/license/LICENSE. |
---|
14 | */ |
---|
15 | |
---|
16 | #if HAVE_CONFIG_H |
---|
17 | #include "config.h" |
---|
18 | #endif |
---|
19 | |
---|
20 | #include <rtems/score/apimutex.h> |
---|
21 | #include <rtems/score/coremuteximpl.h> |
---|
22 | #include <rtems/score/threadimpl.h> |
---|
23 | |
---|
24 | bool _API_Mutex_Is_owner( const API_Mutex_Control *the_mutex ) |
---|
25 | { |
---|
26 | return _CORE_mutex_Is_owner( |
---|
27 | &the_mutex->Mutex.Mutex, |
---|
28 | _Thread_Get_executing() |
---|
29 | ); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.