---
name: "XtAppAddWorkProc"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtAppAddWorkProc"
---

# XtAppAddWorkProc(3)

Add and remove background processing procedures

## NAME

XtAppAddWorkProc, XtRemoveWorkProc - Add and remove background processing procedures

## SYNTAX

\#include \<X11/Intrinsic.h\>

XtWorkProcId XtAppAddWorkProc(XtAppContext *app\_context*, XtWorkProc *proc*, XtPointer *client\_data*);

void XtRemoveWorkProc(XtWorkProcId *id*);

## ARGUMENTS

- *app\_context*

  Specifies the application context that identifies the application.

- *client\_data*

  Specifies the argument that is to be passed to the specified procedure when it is called.

- *proc*

  Specifies the procedure that is to be called.

- *id*

  Specifies which work procedure to remove.

## DESCRIPTION

The **XtAppAddWorkProc** function adds the specified work procedure for the application identified by app\_context.

The **XtRemoveWorkProc** function explicitly removes the specified background work procedure.

## SEE ALSO

[XtAppNextEvent(3)](/XtAppNextEvent/3.md)\
 *X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
