logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

timer_delete — delete a per-process timer (REALTIME)

Description

The timer_delete() system call deletes the specified timer, timerid, previously created by the timer_create(2) system call. If the timer is armed when timer_delete() is called, the behavior is as if the timer is automatically disarmed before removal. Pending signals for the deleted timer are cleared.

Errors

The timer_delete() system call will fail if: [EINVAL] The timer ID specified by timerid is not a valid timer ID.

History

Support for POSIX per-process timer first appeared in FreeBSD 7.0. Debian September 11, 2000 TIMER_DELETE(2)

Library

POSIX Real-time Library (librt, -lrt)

Name

timer_delete — delete a per-process timer (REALTIME)

Return Values

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

See Also

timer_create(2)

Standards

The timer_delete() system call conforms to IEEE Std 1003.1-2004 (“POSIX.1”).

Synopsis

#include<time.h>inttimer_delete(timer_ttimerid);

See Also