NPA_Bts

Atomic bit set function for multiprocessor (MP) safe operation.

Thread Context:Non-Blocking
Requirements: The memory location must be valid or the system abends.

Syntax

    LONG NPA_Bts (
       LONG  *value 
       LONG   position
       );
    
    

Parameters

value
(IN) Points to the value to be modified.
position
(IN) Constant indicating position of the bit to be set (0..31).

Return Values

Returns the value of the original bit (0 or 1).

Remarks

Sets the bit in the position specified and returns the original value of the bit.