| Flags | Type | Name | Summary |
|---|---|---|---|
| public |
object
|
Value
(rw)
|
Retrieve the cell's value, blocking if none exists at present, or supply a value to an empty cell, thereby filling it. |
| Flags | Name | Summary |
|---|---|---|
| public |
BlockingCell()
|
Construct an empty BlockingCell. |
| Flags | Name | Summary |
|---|---|---|
| public |
bool GetValue(int millisecondsTimeout, out object result)
|
Retrieve the cell's value, waiting for the given timeout if no value is immediately available. |
public
bool GetValue(int millisecondsTimeout, out object result)
| Flags | public | ||||||
|---|---|---|---|---|---|---|---|
| Return type |
bool
|
||||||
| Parameters |
|
If a value is present in the cell at the time the call is made, the call will return immediately. Otherwise, the calling thread blocks until either a value appears, or millisecondsTimeout milliseconds have elapsed.
Returns true in the case that the value was available before the timeout, in which case the out parameter "result" is set to the value itself.
If no value was available before the timeout, returns false, and sets "result" to null.
A timeout of -1 (i.e. System.Threading.Timeout.Infinite) will be interpreted as a command to wait for an indefinitely long period of time for the cell's value to become available. See the MSDN documentation for System.Threading.Monitor.Wait(object,int).