NPA_MutexAlloc

Allocates and initializes mutex resources used in multiprocessor (MP) safe operations.

Thread Context:Blocking
Requirements:The mutex name does not need to be unique.

Syntax

    LONG NPA_MutexAlloc (
       BYTE *mutexName
    );
    
    

Parameters

mutexName
(IN) Points to string containing name to be associated with mutex.

Return Values

The following table lists return values and descriptions.

mutex handle

Successful allocation.

zero

Unsuccessful allocation

Remarks

Allocates mutex and returns the handle.