RTEMS  5.0.0
ptimer.h
Go to the documentation of this file.
1 
10 /*
11  * Initial Implementation:
12  * COPYRIGHT (c) 1998. Alfonso Escalera PiƱa
13  * Largely rewritten by Joel Sherrill (1999).
14  *
15  * COPYRIGHT (c) 1999-2013.
16  * On-Line Applications Research Corporation (OAR).
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef _RTEMS_POSIX_PTIMER_H
24 #define _RTEMS_POSIX_PTIMER_H
25 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #include <rtems/posix/config.h>
37 
41 int timer_create(
42  clockid_t clock_id,
43  struct sigevent *evp,
44  timer_t *timerid
45 );
46 
50 int timer_delete(
51  timer_t timerid
52 );
53 
57 int timer_settime(
58  timer_t timerid,
59  int flags,
60  const struct itimerspec *value,
61  struct itimerspec *ovalue
62 );
63 
67 int timer_gettime(
68  timer_t timerid,
69  struct itimerspec *value
70 );
71 
80  timer_t timerid
81 );
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
88 #endif /* _RTEMS_POSIX_PTIMER_H */
int timer_gettime(timer_t timerid, struct itimerspec *value)
Set a Per-Process Timer.
Definition: timergettime.c:38
User Defined Configuration Parameters Specific For The POSIX API.
int timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
Create a Per-Process Timer.
int timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue)
Set a Per-Process Timer.
int timer_delete(timer_t timerid)
Delete a Per-Process Timer.
Definition: psxtimerdelete.c:33
int timer_getoverrun(timer_t timerid)
Get overrun count for a Per-Process Timer.
Definition: timergetoverrun.c:28