Base interface for classes that exhibit a begin/end semantic and allow thread synchronization via wait/notify.
interface
|
IBeginEndSync
|
extends
|
IBeginEnd
|
||
base of
|
BlockStorage
|
||||
DataCache
|
|||||
Monitor
|
Begins an access to this object.
method
|
Begin
()
|
||
inherited
|
IBeginEnd.Begin
|
Remarks:
See the documentation of the class which implements this interface for details on the operations that must be wrapped in Begin and End calls.
See also:
BeginEndEnds the current access to this object.
method
|
End
()
|
||
inherited
|
IBeginEnd.End
|
Remarks:
See the documentation of the class which implements this interface for details on the operations that must be wrapped in Begin and End calls.
See also:
BeginEndNotifies all threads currently blocked in a call to WaitForNotify.
method
|
NotifyWaiting
()
|
Waits until one of the events described below takes place and reacquires the lock on this monitor.
method
|
WaitForNotify
(int32 timeout = 50)
|
||
params
|
timeout
|
[>0]
|
The
timeout
value,
in
milliseconds.
Defaults
to
50 .
|
Remarks:
The calling thread will be blocked until one of the following events takes place:
Exceptions:
Convenience
method
that
calls
ThrowIfDisposed
on
the
given
IDisposable
object,
then
calls
WaitForNotify
on
this
IBeginEndSync
monitor
object.
method
|
WaitForNotifyThrow
(IDisposable disposable)
|
||
params
|
disposable
|
The disposable object. |