[Previous]
[Contents]
[Next]

timer_delete()

delete a timer

Synopsis:

#include <time.h>
int timer_delete( timer_t timerid );

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 to indicate the error.

Errors:

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

Examples:

See timer_create().

Classification:

POSIX 1003.4

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

clock_getres(), clock_gettime(), clock_setres(), clock_settime(), errno, nanosleep(), sleep(), timer_create(), timer_gettime(), timer_settime(), ticksize utility


[Previous]
[Contents]
[Next]