Public Member Functions | Static Public Member Functions | List of all members
BeCriticalSection Class Reference

A critical section/mutual exclusion object. More...

#include <BeCriticalSection.h>

Public Member Functions

 BeCriticalSection ()
 Constructs the critical section object. More...
 
 ~BeCriticalSection ()
 Destroys the critical section object. More...
 
void Enter ()
 Enters the critical section. More...
 
void Leave ()
 Leaves the critical section. More...
 
intptr_t GetOwningThreadId () const
 Get the identifier of the thread that is currently in this critical section. More...
 
bool GetIsValid () const
 False if creation failed. More...
 

Static Public Member Functions

static intptr_t GetCurrentThreadId ()
 Get the identifier of the current thread. More...
 

Detailed Description

A critical section/mutual exclusion object.

Constructor & Destructor Documentation

Constructs the critical section object.

Destroys the critical section object.

Member Function Documentation

void Enter ( )

Enters the critical section.

static intptr_t GetCurrentThreadId ( )
static

Get the identifier of the current thread.

bool GetIsValid ( ) const

False if creation failed.

intptr_t GetOwningThreadId ( ) const

Get the identifier of the thread that is currently in this critical section.

void Leave ( )

Leaves the critical section.


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

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.