osReleaseSharedMemory function
Declaration:
BOOL osReleaseSharedMemory(
  HANDLE Handle
);
Parameters:
Handle

Handle of the shared memory object.

Return value:

TRUE on success or FALSE on failure. Use osGetLastError function to obtain extended error information.

Description:

Function releases the owned shared memory object.

When the task does not need to be any longer shared memory owner, it should be released by the osReleaseSharedMemory function. If another task is waiting for this object, it will acquire the shared memory. For more information on the ownership when the mutex synchronization is used, please refer the mutex objects section. For more information on shared memory objects, please refer to the shared memory section.

Function is available only, when the value of OS_USE_SHARED_MEM constant is set to 1.

Version:1.0
Header file:OS_SharedMem.h (include OS_API.h)
See also: BOOL, FALSE, HANDLE, osCreateSharedMemory, osGetLastError, shared memory, TRUE
SpaceShadow documentation