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

4.104.115
Last change on this file since da42259 was 17b73dc, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/07 at 21:52:09

2007-11-09 Joel Sherrill <joel.sherrill@…>

  • score/src/apimutexlock.c, score/src/apimutexunlock.c: Functions were in opposite files. Whoops!
  • Property mode set to 100644
File size: 588 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/system.h>
17#include <rtems/score/apimutex.h>
18
19void _API_Mutex_Unlock(
20  API_Mutex_Control *the_mutex
21)
22{
23  _Thread_Disable_dispatch();
24    _CORE_mutex_Surrender(
25      &the_mutex->Mutex,
26      the_mutex->Object.id,
27      NULL
28   );
29  _Thread_Enable_dispatch();
30}
Note: See TracBrowser for help on using the repository browser.