Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::GeoCriticalSection

Basic wrapper around a critical section object.

Required to protect code paths that are not multi-thread safe.

Functions

NameDescription
~GeoCriticalSection()

Destructor.

Enter()

Grab the critical section, waiting for it to become available if necessary.

GeoCriticalSection()

Constructor.

Leave()

Release the critical section.

TryEnter()

Attempt to grab the critical section if it is available.


Anchor
aa16a2962a258b8aa17324554d7d758c6
aa16a2962a258b8aa17324554d7d758c6

Geo::GeoCriticalSection::~GeoCriticalSection

...

public: ~GeoCriticalSection()

...

Destructor.


Anchor
afe3a65b88e4560cf2e527899dda0bc6f
afe3a65b88e4560cf2e527899dda0bc6f

void Geo::GeoCriticalSection::Enter

...

public: void Enter()

...

Grab the critical section, waiting for it to become available if necessary.


Anchor
a2e6fbff5127ec51a102bd14c8f8858b7
a2e6fbff5127ec51a102bd14c8f8858b7

Geo::GeoCriticalSection::GeoCriticalSection

...

public: GeoCriticalSection()

...

Constructor.


Anchor
a02f02d4a1ecee053be95e77801de544b
a02f02d4a1ecee053be95e77801de544b

void Geo::GeoCriticalSection::Leave

...

public: void Leave()

...

Release the critical section.


Anchor
acf9b3d0cfd0adea0fa9129c782af660f
acf9b3d0cfd0adea0fa9129c782af660f

bool Geo::GeoCriticalSection::TryEnter

...

public: bool TryEnter()

...

Attempt to grab the critical section if it is available.