1XtAppAddSignal(3)                XT FUNCTIONS                XtAppAddSignal(3)
2
3
4

NAME

6       XtAppAddSignal, XtRemoveSignal, XtNoticeSignal - register and remove a
7       signal source
8

SYNTAX

10       XtSignalId XtAppAddSignal(XtAppContext app_context, XtSignalCallback‐
11              Proc proc, XtPointer client_data);
12
13       void XtRemoveSignal(XtSignalId id);
14
15       void XtNoticeSignal(XtSignalId id);
16

ARGUMENTS

18       app_context
19                 Specifies the application context.
20
21       client_data
22                 Specifies the argument that is to be passed to the specified
23                 procedure when a signal has been raised.
24
25       id        Specifies the ID returned from the corresponding XtAppAdd‐
26                 Signal call.
27
28       proc      Specifies the procedure that is to be called when the signal
29                 has been raised.
30

DESCRIPTION

32       The XtAppAddSignal function initiates a mechanism for handling signals
33       within the context of the Intrinsics. Prior to establishing an operat‐
34       ing system dependent signal handler the application may call XtAppAdd‐
35       Signal and store the returned id in a place accessible to the signal
36       handler.
37
38       Upon receipt of a signal from the operating system, the application may
39       call XtNoticeSignal passing the id returned by the call to XtAppAdd‐
40       Signal.
41
42       XtNoticeSignal is the only Intrinsics function that can safely be
43       called from a signal handler. If XtNoticeSignal is called multiple
44       times before the Intrinsics are able to invoke the registered callback,
45       the callback is only called once. Logically the Intrinsics maintain
46       ``pending'' for each registered callback. This flag is initially False
47       and is set to True by XtNoticeSignal; the Intrinsics invoke the call‐
48       back whenever the flag is True, and the flag is set to False just
49       before the callback is invoked.
50
51       The XtRemoveSignal function is called to remove the specified Intrin‐
52       sics signal handler. The client should disable the source of the signal
53       before calling XtRemoveSignal.
54

SEE ALSO

56       XtAppAddTimeOut(3Xt),XtAppAddInput(3Xt),XtAppAddWorkProc(3Xt)
57       X Toolkit Intrinsics - C Language Interface
58       Xlib - C Language X Interface
59
60
61
62X Version 11                      libXt 1.0.7                XtAppAddSignal(3)
Impressum