#include "unify.h"
int Seq_Wakeup(int seg_id, unsigned wrap, unsigned writep);
Seq_Wakeup blocks the calling worker process until the
wrap count associated with the sequential segment referenced by
seg_id reaches a value of wrap and the write
offset associated with the sequential segment referenced by
seg_id reaches a value of writep (see Get_Limit(3)).
On success, Seq_Wakeup(3) returns 0. Otherwise, a value of -1
is returned.
An error may occur if seg_id is not a valid sequential segment.
If Seq_Wakeup fails, it does not block.