Photon Server API Documentation
v5.0RC1
This IDisposable uses the Monitor class. It is used to replaces try-finally blocks with "using" statements. More...
Public Member Functions | |
| void | Dispose () |
| Calls Monitor.Exit. More... | |
Static Public Member Functions | |
| static IDisposable | Enter (object syncObject) |
| Enters a critical section with Monitor.Enter(object) and returns a new instance of Lock. More... | |
| static IDisposable | TryEnter (object syncObject, int millisecondsTimeout) |
| Enters a critical section with Monitor.TryEnter(object,int) and returns a new instance of Lock. More... | |
This IDisposable uses the Monitor class. It is used to replaces try-finally blocks with "using" statements.
|
inline |
Calls Monitor.Exit.
|
inlinestatic |
Enters a critical section with Monitor.Enter(object) and returns a new instance of Lock.
| syncObject | The sync object. |
|
inlinestatic |
Enters a critical section with Monitor.TryEnter(object,int) and returns a new instance of Lock.
| syncObject | The sync object. |
| millisecondsTimeout | The milliseconds Timeout. |