XtAddWorkProc()XtAddWorkProc()NameXtAddWorkProc - register a procedure to be called when the event loop
is idle.
Synopsis
XtWorkProcId XtAddWorkProc(proc, client_data)
XtWorkProc proc;
XtPointer client_data;
Inputs
proc Specifies the procedure to be called when the application is
idle.
client_data
Specifies data to be passed to proc when it is called.
Returns
A handle of type XtWorkProcId that can be passed to XtRemoveWorkProc()
to unregister the work procedure.
Availability
Superseded by XtAppAddWorkProc().
DescriptionXtAddWorkProc() registers the procedure proc and the data client_data
to be called by XtAppNextEvent() when there are no pending input events
and it would otherwise block.
UsageXtAddWorkProc() has been superseded by XtAppAddWorkProc(), which per‐
forms the same function on a per-application context basis. XtAd‐
dWorkProc() now calls XtAppAddWorkProc() passing the default applica‐
tion context created by XtInitialize(). Very few programs need multi‐
ple application contexts, and you can continue to use XtAddWorkProc()
if you initialize your application with XtInitialize(). We recommend,
however, that you use XtAppInitialize(), XtAppAddWorkProc(), and the
other XtApp*() application context specific functions.
See XtAppAddWorkProc() for more information.
See AlsoXtAppAddWorkProc(1), XtRemoveWorkProc(1),
XtWorkProc(2).
Xt - Event Handling XtAddWorkProc()