R
Rene
Hi,
Could anyone explain to me why calls to:
Monitor.Pulse(obj);
Monitor.PulseAll(obj);
Monitor.Wait(obj);
Need to happen between the Monitor.Enter() and Monitor.Exit() calls?
I realize that some of this call may not make "conceptual" sense if they are
called outside the Monitor.Enter() and Monitor.Exit() methods but my guess
is that you could design something using the calls outside the
Monitor.Enter() and Monitor.Exit() methods and get something to work
although there would be probably betters ways to accomplish this.
So my question again is, why does the framework throws and error if the call
and not made between the Monitor.Enter() and Monitor.Exit() methods?
Thanks.
Could anyone explain to me why calls to:
Monitor.Pulse(obj);
Monitor.PulseAll(obj);
Monitor.Wait(obj);
Need to happen between the Monitor.Enter() and Monitor.Exit() calls?
I realize that some of this call may not make "conceptual" sense if they are
called outside the Monitor.Enter() and Monitor.Exit() methods but my guess
is that you could design something using the calls outside the
Monitor.Enter() and Monitor.Exit() methods and get something to work
although there would be probably betters ways to accomplish this.
So my question again is, why does the framework throws and error if the call
and not made between the Monitor.Enter() and Monitor.Exit() methods?
Thanks.