source: rtems/cpukit/score/src/debugisownerofallocator.c @ 0daa8ab

5
Last change on this file since 0daa8ab 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: 785 bytes
Line 
1/*
2 * Copyright (c) 2014-2015 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
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/score/assert.h>
20#include <rtems/score/apimutex.h>
21#include <rtems/score/threadimpl.h>
22
23#if defined( RTEMS_DEBUG )
24  bool _Debug_Is_owner_of_allocator( void )
25  {
26    API_Mutex_Control *mutex = _RTEMS_Allocator_Mutex;
27    bool owner;
28
29    if ( mutex != NULL ) {
30      owner = _API_Mutex_Is_owner( mutex );
31    } else {
32      owner = false;
33    }
34
35    return owner;
36  }
37#endif
Note: See TracBrowser for help on using the repository browser.