ReXGlue SDK
Loading...
Searching...
No Matches
rex::platform::Mutant Class Referenceabstract

#include <rex/platform/sync.h>

Inheritance diagram for rex::platform::Mutant:
[legend]

Public Member Functions

virtual bool Release ()=0
Public Member Functions inherited from rex::platform::WaitHandle
virtual void * GetNativeHandle () const =0

Static Public Member Functions

static std::unique_ptr< Mutant > Create (bool initial_owner)

Detailed Description

Mutant object modeled on the Win32 mutex.

Member Function Documentation

◆ Create()

std::unique_ptr< Mutant > rex::platform::Mutant::Create ( bool initial_owner)
static

Creates a mutant.

Parameters
initial_ownerTrue to give ownership to the calling thread.
Returns
The mutant, or null on failure.

◆ Release()

virtual bool rex::platform::Mutant::Release ( )
pure virtual

Releases ownership.

Returns
False when the calling thread does not own the mutant.

The documentation for this class was generated from the following file: