| 1 |
#ifndef PYI_TIMINGTHREAD_H |
| 2 |
#define PYI_TIMINGTHREAD_H |
| 3 |
|
| 4 |
#include <Python.h> |
| 5 |
#include "pyi_shared.h" |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
Py_EXPORTED_SYMBOL int pyi_timing_thread_subscribe(double desired_interval); |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
Py_EXPORTED_SYMBOL double pyi_timing_thread_get_time(void); |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
Py_EXPORTED_SYMBOL double pyi_timing_thread_get_interval(void); |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
Py_EXPORTED_SYMBOL int pyi_timing_thread_unsubscribe(int id); |
| 30 |
|
| 31 |
#define PYI_TIMING_THREAD_UNKNOWN_ERROR -1 |
| 32 |
#define PYI_TIMING_THREAD_TOO_MANY_SUBSCRIBERS -2 |
| 33 |
#define PYI_TIMING_THREAD_NOT_SUBSCRIBED -3 |
| 34 |
|
| 35 |
#endif |