EV_BLOCK(S) UNIX System V EV_BLOCK(S)
Name
ev_block - wait until the queue contains an event
Syntax
#include <types.h>
#include <param.h>
#include <sysmacros.h>
#include <page.h>
#include <event.h>
#include <mouse.h>
int ev_block()
Description
After a process has opened an event queue with ev_init(S)
and ev_open(S), ev_block causes the process to sleep until
there is an event in the event queue.
Diagnostics
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.
See Also
ev_close(S), ev_count(S), ev_flush(S), ev_getdev(S),
ev_getemask(S), ev_gindev(S), ev_init(S), ev_open(S),
ev_pop(S), ev_read(S), ev_resume(S), ev_setemask(S),
ev_suspend(S)
Notes
This routine must be linked in with the -levent linker
option.
(printed 6/20/89)