1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #include <errno.h>
- #include <pthread.h>
- #include <time.h>
- #include "posix-timer.h"
- int
- timer_getoverrun (timerid)
- timer_t timerid;
- {
- struct timer_node *timer;
- int retval = -1;
- pthread_mutex_lock (&__timer_mutex);
- if (! timer_valid (timer = timer_id2ptr (timerid)))
- __set_errno (EINVAL);
- else
- retval = timer->overrun_count;
- pthread_mutex_unlock (&__timer_mutex);
- return retval;
- }
|