1
0
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:
Oleg Hahm 2013-12-18 17:34:42 +01:00
parent 6d2ed29668
commit 227c847135
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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