XtAppAddSignal(3)



XtAppAddSignal

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

XtAppAddSignal, XtRemoveSignal, XtNoticeSignal − register and remove a signal source

SYNTAX

XtSignalId XtAppAddSignal(XtAppContext app_context, XtSignalCallbackProc proc, XtPointer client_data);

void XtRemoveSignal(XtSignalId id);

void XtNoticeSignal(XtSignalId id);

ARGUMENTS

app_context

Specifies the application context.

client_data

Specifies the argument that is to be passed to the specified procedure when a signal has been raised.

id

Specifies the ID returned from the corresponding XtAppAddSignal call.

proc

Specifies the procedure that is to be called when the signal has been raised.

DESCRIPTION

The XtAppAddSignal function initiates a mechanism for handling signals within the context of the Intrinsics. Prior to establishing an operating system dependent signal handler the application may call XtAppAddSignal and store the returned id in a place accessible to the signal handler.

Upon receipt of a signal from the operating system, the application may call XtNoticeSignal passing the id returned by the call to XtAppAddSignal.

XtNoticeSignal is the only Intrinsics function that can safely be called from a signal handler. If XtNoticeSignal is called multiple times before the Intrinsics are able to invoke the registered callback, the callback is only called once. Logically the Intrinsics maintain ‘‘pending’’ for each registered callback. This flag is initially False and is set to True by XtNoticeSignal; the Intrinsics invoke the callback whenever the flag is True, and the flag is set to False just before the callback is invoked.

The XtRemoveSignal function is called to remove the specified Intrinsics signal handler. The client should disable the source of the signal before calling XtRemoveSignal.

SEE ALSO

XtAppAddTimeOut(3Xt),XtAppAddInput(3Xt),XtAppAddWorkProc(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface



More Linux Commands

manpages/busyspheres.1.html
busyspheres(1) - particle spheres. - Linux manual page......
Spheres made of dancing particles. Ported to Linux by Tugrul Galatali. OPTIONS --root Draw on the root window. --maxfps number Set maximum frame rate. --vsync n

manpages/acl_check.3.html
acl_check(3) - check an ACL for validity - Linux man page...
The acl_check() function checks the ACL referred to by the argument acl for validity. The three required entries ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER must

manpages/libtasn1_strerror.3.html
libtasn1_strerror(3) - Returns a string with a description o
This function is similar to strerror(). The only difference is that it accepts an error (number) returned by a libtasn1 function. RETURNS Pointer to static zero

manpages/Tk_NameOfColor.3.html
Tk_NameOfColor(3) - maintain database of colors (Man Page)
These procedures manage the colors being used by a Tk application. They allow colors to be shared whenever possible, so that colormap space is preserved, and th

manpages/XkbFreeGeomColors.3.html
XkbFreeGeomColors(3) - Free geometry colors - Linux man page
XkbFreeGeomColors.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyb

manpages/XdbeGetVisualInfo.3.html
XdbeGetVisualInfo(3) - Get dbe Visual Informations (ManPage)
This function returns information about which visuals support double buffering. The argument num_screens specifies how many elements there are in the screen_spe

manpages/XGetSelectedExtensionEvents.3.html
XGetSelectedExtensionEvents(3) - select extension events, ge
The XSelectExtensionEvent request causes the X server to report the events associated with the specified list of event classes. Initially, X will not report any

manpages/Tcl_UniCharIsUpper.3.html
Tcl_UniCharIsUpper(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla

manpages/pam_winbind.conf.5.html
pam_winbind.conf(5) - Configuration file of PAM module for W
This configuration file is part of the samba(7) suite. pam_winbind.conf is the configuration file for the pam_winbind PAM module. See pam_winbind(8) for further

manpages/clnt_control.3.html
clnt_control(3) - library routines for remote procedure call
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/aa-enforce.8.html
aa-enforce(8) set an AppArmor security profile to enforce mo
aa-enforce is used to set one or more profiles to enforce mode. This command is only relevant in conjunction with the aa-complain utility which sets a profile t

manpages/isdn_cause.7.html
isdn_cause.7 (Manual - Linux man page).....................
This document describes the cause messages, used with the ISDN D-channel protocols EDSS1 and 1TR6 and their format, visible to the user. FORMAT Cause messages a





We can't live, work or learn in freedom unless the software we use is free.