Seq_Wakeup(3)

Synopsis

cc [ flag ... ] file ... -lunify -levents -lpvm3 -lgpvm3 -lthread -ll -lsocket -lnsl -lw -lposix4 -lucb [ library ... ]

#include "unify.h"

int Seq_Wakeup(int seg_id, unsigned wrap, unsigned writep);

Description

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)).

Return Values

On success, Seq_Wakeup(3) returns 0. Otherwise, a value of -1 is returned.

Errors

An error may occur if seg_id is not a valid sequential segment.

See Also

Get_Limit(3), unifyintro(3)

Notes

If Seq_Wakeup fails, it does not block.


RCS status $Id: Seq_Wakeup.html,v 1.1 1998/01/14 16:20:25 dieter Exp $