Await_with_Timeout(3)

Synopsis

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

#include "unify.h"

int Await_with_Timeout(int event_id, int count, struct timeval *timeout);

Description

Await_with_Timeout(3) blocks the calling process until the event counter referenced by event_id reaches a value of at least count or the specifies timeout expires. count may be exceeded by the time the process calling Await_with_Timeout(3) unblocks. If unblocking was caused by the timer expiring then the return value can be less than the specified count.

Return Values

Await_with_Timeout(3) returns the new value of the event counter upon unblock. Otherwise, a value of -1 is returned.

Errors

See Also

Event Counters and Sequencers(3), unifyintro(3)


RCS status $Id: Await_with_Timeout.html,v 1.1 1998/02/09 17:43:42 rajitha Exp $