Space Engineers
Public Member Functions | List of all members
ParallelTasks.Semaphore Class Reference

A semaphore class. More...

Public Member Functions

 Semaphore (int maximumCount)
 Creates a new instance of the Semaphore class. More...
 
void WaitOne ()
 Blocks the calling thread until resources are made available, then consumes one resource. More...
 
void Release ()
 Adds one resource. More...
 

Detailed Description

A semaphore class.

Definition at line 12 of file Semaphore.cs.

Constructor & Destructor Documentation

ParallelTasks.Semaphore.Semaphore ( int  maximumCount)
inline

Creates a new instance of the Semaphore class.

Parameters
maximumCount

Definition at line 22 of file Semaphore.cs.

Member Function Documentation

void ParallelTasks.Semaphore.Release ( )
inline

Adds one resource.

Definition at line 47 of file Semaphore.cs.

void ParallelTasks.Semaphore.WaitOne ( )
inline

Blocks the calling thread until resources are made available, then consumes one resource.

Definition at line 31 of file Semaphore.cs.


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