diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2013-07-20 08:41:41 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2013-07-20 08:43:10 +0200 |
commit | e14b2f0d2406311a6fcdaea313584995ec8adefd (patch) | |
tree | f2cffca4fe334aeb873cce8a77bd5b6f98cc0096 /os/time.h | |
parent | 657d427aa41e6e05c8c4d4b1179b42d3363e8018 (diff) |
Add support for sleeping threads.scheduler_improvements
Diffstat (limited to 'os/time.h')
-rw-r--r-- | os/time.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,7 +1,7 @@ #ifndef TIME_H #define TIME_H -#include "thread.h" +#include <stdint.h> struct STK_t { volatile uint32_t CTRL; @@ -24,13 +24,6 @@ class Time { inline static uint32_t time() { return systime; } - - inline static void sleep(uint32_t ms) { - ms += systime; - while(systime < ms) { - Thread::yield(); - } - } }; #endif |