Changeset 880 for trunk/src


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

Inlined _fmutex_checked_release & _fmutex_checked_request.

Location:
trunk/src/emx
Files:
3 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)
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.25 to 1.26
    r879 r880  
    262262    "__fmutex_checked_create" @298
    263263    "__fmutex_checked_open" @299
    264     "__fmutex_checked_release" @300
    265     "__fmutex_checked_request" @301
     264    "___collate_range_cmp" @300
     265    "_toupper" @301
    266266    "__fmutex_close" @302
    267267    "__fmutex_create" @303
     
    824824    "_toascii" @860
    825825    "_tolower" @861
    826     "_toupper" @862
    827     "___collate_range_cmp" @863
  • trunk/src/emx/src/lib/process/fmutex2.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r879 r880  
    2828    abort ();
    2929}
    30 
    31 
    32 void _fmutex_checked_release (_fmutex *sem)
    33 {
    34   if (_fmutex_release (sem) != 0)
    35     abort ();
    36 }
    37 
    38 
    39 void _fmutex_checked_request (_fmutex *sem, unsigned flags)
    40 {
    41   if (_fmutex_request (sem, flags) != 0)
    42     abort ();
    43 }
Note: See TracChangeset for help on using the changeset viewer.