5
Last change
on this file since 2548d14 was
6c2b8a4b,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/29/17 at 05:23:27
|
score: Use self-contained API mutex
Use a self-contained recursive mutex for API_Mutex_Control. The API
mutexes are protected against asynchronous thread cancellation.
Add dedicated mutexes for libatomic and TOD.
Close #2629.
Close #2630.
|
-
Property mode set to
100644
|
File size:
554 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/percpu.h> |
---|
22 | |
---|
23 | bool _API_Mutex_Is_owner( const API_Mutex_Control *the_mutex ) |
---|
24 | { |
---|
25 | return the_mutex->Mutex._Mutex._Queue._owner == _Thread_Get_executing(); |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.