The dpblock man page
NAME
dpblock - disable DP-related system signals
SYNOPSIS
#include
int dpblock()
DESCRIPTION
dpblock() disables system signals used by DP, namely,
SIGALRM and SIGIO. It does not affect any other signals.
dpblock() is used mostly to avoid race conditions caused by
DP activities. It should be called before accessing objects
that could be modified by a message catching function. For
instance, it should be invoked before updating a counter
variable for counting the number of messages received by the
current process.
To indicate the end of a critical code segment, use dpun-
block().
SCHEME:
dpblock();
critical section
dpunblock();
RETURN VALUES
dpblock() returns the current system signal mask.
REMARK
This is a DP function call.
AUTHOR
David Arnow
FILES
/usr/include/dp/dp.h - DP header file
/usr/lib/libdp.a - DP library file
SEE ALSO
dpunblock(3DP), dppause(3DP), dpcall(3DP), sigblock(2)
Essential DP MAN Pages:
General/Essential:
Non-Interrupting Messages:
Interrupting Messages:
dpblock
dpcatchmsg
dpgetmsg
dppause
dpunblock
Other:
Return to
DP For Students
Return to
The DP Project
Return to
David Arnow's Home Page