diff options
Diffstat (limited to 'src/include/scheduler.h')
-rw-r--r-- | src/include/scheduler.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/scheduler.h b/src/include/scheduler.h index 6a3f7f8f8..884b3936c 100644 --- a/src/include/scheduler.h +++ b/src/include/scheduler.h @@ -45,14 +45,20 @@ typedef struct { /*
* Scheduler APIs.
*/
-void chSchInit(void);
-Thread *chSchReadyI(Thread *tp);
-void chSchGoSleepI(t_tstate newstate);
-void chSchWakeupI(Thread *tp, t_msg msg);
-void chSchRescheduleI(void);
-void chSchDoRescheduleI(void);
-BOOL chSchRescRequiredI(void);
-void chSchTimerHandlerI(void);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void chSchInit(void);
+ Thread *chSchReadyI(Thread *tp);
+ void chSchGoSleepI(t_tstate newstate);
+ void chSchWakeupI(Thread *tp, t_msg msg);
+ void chSchRescheduleI(void);
+ void chSchDoRescheduleI(void);
+ BOOL chSchRescRequiredI(void);
+ void chSchTimerHandlerI(void);
+#ifdef __cplusplus
+}
+#endif
/**
* Current thread pointer.
|