PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.AutoBarrier Class Reference

Provides an auto-signaller around a barrier: when this is disposed, it will SignalAndWait on the barrier, meaning you don't need to put required barrier unlocks in a finally clause. More...

Inheritance diagram for PeanutButter.Utils.AutoBarrier:

Public Member Functions

 AutoBarrier (Barrier barrier)
 Constructs the wrapper around the barrier.
void Dispose ()

Detailed Description

Provides an auto-signaller around a barrier: when this is disposed, it will SignalAndWait on the barrier, meaning you don't need to put required barrier unlocks in a finally clause.

Constructor & Destructor Documentation

◆ AutoBarrier()

PeanutButter.Utils.AutoBarrier.AutoBarrier ( Barrier barrier)

Constructs the wrapper around the barrier.

Parameters
barrier

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/AutoBarrier.cs