26 Jun
2006
26 Jun
'06
8:36 a.m.
On Fri, 23 Jun 2006, Ed Baskerville wrote:
OK, I'll do that. But one more question: how do these issues apply to synchronize? Consider the following sequence:
thread 1: wait(job id 5) thread 2: synchronize(job ids 5,6,7) [job id 5 finishes] ¿thread 2 synchronize call fails? [job id 7 finishes] [job id 6 finishes] ¿thread 2 synchronize call succeeds?
Should synchronize fail with INVALID_JOB as soon as any of the ids it's waiting on are reaped? Or should it eventually succeed?
There is no reason for synchronize to fail, as long as none of the jobs was reaped when synchronize() gets issued. Andreas