source: rtems/cpukit/score/src/apimutexunlock.c @ a936aa49

4.115
Last change on this file since a936aa49 was f839bf5a, checked in by Christopher Kerl <zargyyoyo@…>, on 12/01/12 at 14:47:07

score misc: Score misc: Clean up Doxygen #10 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7983216

  • Property mode set to 100644
File size: 774 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Releases the Specified API Mutex
5 *
6 * @ingroup ScoreAPIMutex
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2007.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/score/apimutex.h>
24
25void _API_Mutex_Unlock(
26  API_Mutex_Control *the_mutex
27)
28{
29   /* Dispatch is already disabled in SMP while lock is held. */
30   #if !defined(RTEMS_SMP)
31     _Thread_Disable_dispatch();
32   #endif
33    _CORE_mutex_Surrender(
34      &the_mutex->Mutex,
35      the_mutex->Object.id,
36      NULL
37   );
38  _Thread_Enable_dispatch();
39}
Note: See TracBrowser for help on using the repository browser.