Ignore:
Timestamp:
Dec 8, 2003, 6:35:52 AM (22 years ago)
Author:
bird
Message:

Inlined _fmutex_checked_release & _fmutex_checked_request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/fmutex.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r879 r880  
    77#ifndef _SYS_FMUTEX_H
    88#define _SYS_FMUTEX_H
     9
     10#include <stdlib.h> /* need abort */
    911
    1012#if defined (__cplusplus)
     
    8991void _fmutex_checked_create (_fmutex *, unsigned);
    9092void _fmutex_checked_open (_fmutex *);
    91 void _fmutex_checked_release (_fmutex *);
    92 void _fmutex_checked_request (_fmutex *, unsigned);
     93
     94static __inline__ void _fmutex_checked_release (_fmutex * sem)
     95{
     96  if (_fmutex_release (sem) != 0)
     97    abort ();
     98}
     99
     100static __inline__ void _fmutex_checked_request (_fmutex * sem, unsigned flags)
     101{
     102  if (_fmutex_request (sem, flags) != 0)
     103    abort ();
     104}
    93105
    94106#if defined (__cplusplus)
Note: See TracChangeset for help on using the changeset viewer.