timer_delete()

Delete a timer

Synopsis:

#include <time.h>

int timer_delete( timer_t timerid );

Arguments:

timerid
A timer_t object that holds a timer ID, as set by timer_create().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The timer_delete() function removes a previously attached timer based upon the timerid returned from the timer_create() function. The timer is removed from the active system timer list, and returned to the free list of available timers.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EINVAL
The timer timerid isn't attached to the calling process.

Classification:

POSIX 1003.1 TMR

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

clock_getres(), clock_gettime(), clock_settime(), nanosleep(), sleep(), timer_create(), timer_getexpstatus(), timer_getoverrun(), timer_gettime(), timer_settime()

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