XtAppAddTimeOut(3)
π XtAppAddTimeOut β XT FUNCTIONS π
okay bestie, we're in XtAppAddTimeOut(3) territory, aka the XT FUNCTIONS corner of the X Toolkit Intrinsics manual. this is your girl's guide to registering and removing timeouts, and yes it's as iconic as it sounds π
β¨ NAME β¨
XtAppAddTimeOut, XtRemoveTimeOut β register and remove timeouts β°
β¨ SYNTAX β¨
#include <X11/Intrinsic.h>
XtIntervalId XtAppAddTimeOut(XtAppContext app_context, unsigned long
interval, XtTimerCallbackProc proc, XtPointer client_data);
void XtRemoveTimeOut(XtIntervalId timer);
β¨ ARGUMENTS β¨
app_contextβ the application context you're setting this timer up for. it's giving "whose timer is this anyway" πclient_dataβ the argument that gets passed to the procedure you specified when the callback is handled. your lil gift bag πintervalβ the time interval, in milliseconds. so not seconds, bestie, don't get caught lacking β±οΈprocβ the procedure that gets called when the time expires π«Άtimerβ the ID for the timeout request that's getting destroyed. bye girl π
β¨ DESCRIPTION β¨
okay so XtAppAddTimeOut creates a timeout and hands you back an identifier for it. the timeout value is set to interval. when that time interval elapses, the callback procedure gets called, and then the timeout is removed. that's it, that's the whole arc π
the XtRemoveTimeOut function removes the timeout. and listen β timeouts are automatically removed once they trigger. so if you're sitting there planning to clean up after one fires, no you're not, it's already handled π§
lowkey important: once a timeout triggers, it's gone. no double-dipping, no manual removal needed, the universe (well, libXt) took care of it β¨
β¨ SEE ALSO β¨
XtAppAddInput(3),XtAppAddSignal(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the whole page, bestie!! this was X Version 11, libXt 1.3.1 β shoutout to the libXt girlies for keeping timeouts on the menu π periodt π β¨
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms