ev_block(3event)


ev_block -- wait until the queue contains an event

Synopsis

cc . . . -levent

#include  <sys/types.h>
#include  <sys/param.h>
#include  <sys/sysmacros.h>
#include  <sys/page.h>
#include  <sys/event.h>
#include  <mouse.h>

int ev_block()

Description

After a process has opened an event queue with ev_init and ev_open, ev_block causes the process to sleep until there is an event in the event queue.

Return values

A call to ev_block returns -1 if the process does not have an open event queue, or if it is interrupted. It returns zero if it succeeds.

References

ev_close(3event), ev_count(3event), ev_flush(3event), ev_getdev(3event), ev_getemask(3event), ev_gindev(3event), ev_init(3event), ev_open(3event), ev_pop(3event), ev_read(3event), ev_resume(3event), ev_setemask(3event), ev_suspend(3event)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004