mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
put prototype for thread_yield() in core/include
This commit is contained in:
parent
6d2ed29668
commit
227c847135
@ -66,6 +66,11 @@ const char *thread_getname(int pid);
|
||||
*/
|
||||
void thread_sleep(void);
|
||||
|
||||
/**
|
||||
* @brief The current thread yields and let the scheduler run.
|
||||
*/
|
||||
void thread_yield(void);
|
||||
|
||||
/**
|
||||
* @brief Wakes up a sleeping thread.
|
||||
* @param pid The PID of the thread to be woken up
|
||||
|
@ -11,7 +11,6 @@
|
||||
extern void dINT(void);
|
||||
extern void eINT(void);
|
||||
|
||||
void thread_yield(void);
|
||||
uint32_t get_system_speed(void);
|
||||
void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale);
|
||||
|
||||
|
@ -67,8 +67,5 @@ int register_interrupt(int sig, void (*handler)(void));
|
||||
*/
|
||||
int unregister_interrupt(int sig);
|
||||
|
||||
/* this should be defined elsewhere */
|
||||
void thread_yield(void);
|
||||
|
||||
/** @} */
|
||||
#endif //_CPU_H
|
||||
|
Loading…
Reference in New Issue
Block a user