source: rtems/cpukit/posix/include/rtems/posix/ptimer.h @ c499856

4.11
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @file
3 *
4 * @brief POSIX Timers Private Support
5 *
6 * This include file contains all the private support information for
7 * POSIX timers.
8 */
9
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
26/**
27 * @defgroup POSIX_PRIV_TIMERS POSIX Timers
28 *
29 * @ingroup POSIXAPI
30 */
31/**@{**/
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#include <rtems/posix/config.h>
37
38/**
39 *  @brief POSIX Timer Manager Initialization
40 *
41 *  This routine performs the initialization necessary for this manager.
42 */
43void _POSIX_Timer_Manager_initialization(void);
44
45/**
46 *  @brief Create a Per-Process Timer
47 */
48int timer_create(
49  clockid_t        clock_id,
50  struct sigevent *evp,
51  timer_t         *timerid
52);
53
54/**
55 *  @brief Delete a Per-Process Timer
56 */
57int timer_delete(
58  timer_t timerid
59);
60
61/**
62 *  @brief Set a Per-Process Timer
63 */
64int timer_settime(
65  timer_t                  timerid,
66  int                      flags,
67  const struct itimerspec *value,
68  struct itimerspec       *ovalue
69);
70
71/**
72 *  @brief Set a Per-Process Timer
73 */
74int timer_gettime(
75  timer_t            timerid,
76  struct itimerspec *value
77);
78
79/**
80 * @brief Get overrun count for a Per-Process Timer
81 *
82 * The expiration of a timer must increase by one a counter.
83 * After the signal handler associated to the timer finishes
84 * its execution, _POSIX_Timer_TSR will have to set this counter to 0.
85 */
86int timer_getoverrun(
87  timer_t   timerid
88);
89
90/** @} */
91
92#endif
Note: See TracBrowser for help on using the repository browser.