Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 8
Get the expiry status of a timer
#include <time.h>
int timer_getexpstatus( timer_t timerid );
- timerid
- A timer_t object that holds a timer ID, as set by
timer_create().
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The timer_getexpstatus() function gets the expiry status of
the time with the ID given by timerid.
|
This function is based on a POSIX draft.
If you want your code to be more portable, then instead of calling
timer_getexpstatus(), call
timer_gettime()
and check the amount of time left on the timer. |
- 0
- The timer has expired.
- -1
- An error occurred
(errno is set).
- EINVAL
- The timer specified by timerid doesn't exist.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
timer_create(),
timer_delete(),
timer_getoverrun(),
timer_gettime(),
timer_settime(),
TimerInfo()
Clocks, Timers, and Getting a Kick Every So Often
chapter of Getting Started with QNX Neutrino
Tick, Tock: Understanding the Neutrino Microkernel's Concept of Time
chapter of the QNX Neutrino Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 157
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/timer_getexpstatus.html on line 157