Back to index

glibc  2.9
timer_getoverr.c File Reference
#include <errno.h>
#include <pthread.h>
#include <time.h>
#include "posix-timer.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int timer_getoverrun (timer_t timerid)

Function Documentation

int timer_getoverrun ( timer_t  timerid)

Definition at line 29 of file timer_getoverr.c.

  struct timer_node *timer;
  int retval = -1;

  pthread_mutex_lock (&__timer_mutex);

  if (! timer_valid (timer = timer_id2ptr (timerid)))
    __set_errno (EINVAL);
    retval = timer->overrun_count;

  pthread_mutex_unlock (&__timer_mutex);

  return retval;

Here is the call graph for this function: