Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IMultiReadSingleWriteObject.cs
1using System;
2using System.Threading.Tasks;
3
5{
10 {
16 Task<int> BeginRead();
17
23 Task<int> EndRead();
24
30 Task<bool> TryBeginRead(int Timeout);
31
36 Task BeginWrite();
37
42 Task EndWrite();
43
49 Task<bool> TryBeginWrite(int Timeout);
50
55 {
56 get;
57 }
58
63 {
64 get;
65 }
66 }
67}
An interface for objects that allow single concurrent writers but multiple concurrent readers.
Task EndWrite()
Ends a writing session of the object. Must be called once for each call to BeginWrite or successful c...
Task< bool > TryBeginWrite(int Timeout)
Waits, at most Timeout milliseconds, until object ready for writing. Each successful call to TryBegi...
Task BeginWrite()
Waits until object ready for writing. Each call to BeginWrite must be followed by exactly one call to...
Task< int > BeginRead()
Waits until object ready for reading. Each call to BeginRead must be followed by exactly one call to ...
Task< bool > TryBeginRead(int Timeout)
Waits, at most Timeout milliseconds, until object ready for reading. Each successful call to TryBegi...
Task< int > EndRead()
Ends a reading session of the object. Must be called once for each call to BeginRead or successful ca...