XtAppAddTimeOut man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XtAppAddTimeOut()					     XtAppAddTimeOut()

XtAppAddTimeOut	 -  register  a	 procedure  to be called when a specified time
elapses.

Synopsis
  XtIntervalId XtAppAddTimeOut(app_context, interval, proc, client_data)
	 XtAppContext app_context;
	 unsigned long interval;
	 XtTimerCallbackProc proc;
	 XtPointer client_data;

Inputs
  app_context
	    Specifies the application context in which the timer is to be
	    set.

  interval  Specifies the time interval in milliseconds.

  proc	    Specifies  the  procedure  that is to be called when the time
	    expires.  See XtTimerCallbackProc(2).

  client_data
	    Specifies data to be passed to proc when it is called.

Returns
  A handle of type XtIntervalId that can be used to unregister the  time‐
  out procedure with XtRemoveTimeOut().

Description
  XtAppAddTimeOut() registers, in application context app_context, a pro‐
  cedure proc, to be called by XtAppNextEvent()	 with  client_data  after
  interval  milliseconds  elapse.  The procedure is called once and auto‐
  matically unregistered; it will not be called repeatedly every interval
  milliseconds.

  See  XtTimerCallbackProc(2)  for an explanation of how to write a timer
  callback.

Usage
  Timer callbacks are automatically unregistered  after	 they  are  trig‐
  gered.   To have a callback called at a regular interval, call XtAppAd‐
  dTimeOut() again from within the timer callback.

  A timer callback can be explicitly unregistered before it is invoked by
  calling  XtRemoveTimeOut() with the XtIntervalId returned by this func‐
  tion.

Structures
  The XtIntervalId type is defined as follows:

     typedef unsigned long XtIntervalId;

See Also
  XtAppNextEvent(1), XtRemoveTimeOut(1),
  XtTimerCallbackProc(2).

Xt - Event Handling					     XtAppAddTimeOut()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net