ManualResetEventSlim
E704381
ManualResetEventSlim is a lightweight synchronization primitive in .NET used to efficiently signal and wait for events across threads, offering better performance than the classic ManualResetEvent in many scenarios.
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
class
ⓘ
managed synchronization construct ⓘ |
| belongsToLibrary |
System.Private.CoreLib (in .NET Core / .NET 5+)
NERFINISHED
ⓘ
mscorlib (older .NET Framework) NERFINISHED ⓘ |
| canFallbackTo | ManualResetEvent ⓘ |
| comparedTo | ManualResetEvent NERFINISHED ⓘ |
| definedIn | System.Threading namespace NERFINISHED ⓘ |
| hasBaseType | System.Object NERFINISHED ⓘ |
| hasBetterPerformanceThan | ManualResetEvent in many scenarios NERFINISHED ⓘ |
| hasConstructor |
ManualResetEventSlim()
NERFINISHED
ⓘ
ManualResetEventSlim(bool initialState) NERFINISHED ⓘ ManualResetEventSlim(bool initialState, int spinCount) ⓘ |
| hasMethod |
Dispose()
ⓘ
Dispose(bool disposing) ⓘ Reset() ⓘ Set() ⓘ Wait() ⓘ Wait(CancellationToken) ⓘ Wait(TimeSpan timeout) ⓘ Wait(TimeSpan timeout, CancellationToken cancellationToken) ⓘ Wait(int millisecondsTimeout) ⓘ Wait(int millisecondsTimeout, CancellationToken cancellationToken) ⓘ |
| hasProperty |
CancellationToken
ⓘ
IsDisposed ⓘ IsSet ⓘ Lock ⓘ SpinCount ⓘ WaitHandle NERFINISHED ⓘ |
| implements | IDisposable NERFINISHED ⓘ |
| introducedIn | .NET Framework 4.0 NERFINISHED ⓘ |
| isLightweight | true ⓘ |
| isManualReset | true ⓘ |
| isResetEventType | true ⓘ |
| optimizedFor |
low contention scenarios
ⓘ
short wait times ⓘ |
| partOf |
.NET 5+
NERFINISHED
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| supports |
WaitHandle conversion
ⓘ
manual reset semantics ⓘ multiple waiters ⓘ |
| threadSafe | true ⓘ |
| usedFor |
coordinating task completion
ⓘ
implementing higher-level synchronization patterns ⓘ signaling between threads ⓘ |
| uses | spinning before kernel wait ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.