Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (5 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_atomic.h

    r17 r23  
    6767
    6868/*****************************************************************************************
    69  * This blocking function atomically increments a 32 bits unsigned int shared variable,
    70  * returning only when atomic increment is successful.
    71  *****************************************************************************************
    72  * @ ptr     : pointer on the shared variable
    73  * @ return shared variable value before increment
    74  ****************************************************************************************/
    75 uint32_t hal_atomic_inc( uint32_t * ptr );
    76 
    77 /*****************************************************************************************
    78  * This blocking function atomically decrements a 32 bits unsigned int shared variable,
    79  * returning only when atomic decrement is successful.
    80  *****************************************************************************************
    81  * @ ptr     : pointer on the shared variable
    82  * @ return shared variable value before decrement
    83  ****************************************************************************************/
    84 uint32_t hal_atomic_dec( uint32_t * ptr );
    85 
    86 /*****************************************************************************************
    8769 * This NON blocking function makes an atomic Compare-And-Swap on a 32 bits unsigned int
    8870 * shared variable, returning a Boolean to indicate both success and atomicity.
Note: See TracChangeset for help on using the changeset viewer.