Bisnupriya, All,
More corner cases...
Suppose a process is reset while it is suspended, or even the more extreme
case where a process is reset several times while suspended and each time
comes to rest at at different wait call with a different dynamic
sensitivity list. What happens on the call to resume? Is the
implementation obliged to track whether the process would have been
resumed (while in fact suspended) through all the changes to the dynamic
sensitivity?
e.g.
void my_thread () {
if (state)
wait (something);
else
wait (something_else)
for (;;) {
wait (...);
...
}
...
handle.suspend();
...
handle.reset();
...
handle.reset();
...
handle.resume();
John A
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Fri Sep 17 05:53:50 2010
This archive was generated by hypermail 2.1.8 : Fri Sep 17 2010 - 05:53:53 PDT