diff options
author | Liio Chen <liio@qq.com> | 2015-01-27 16:44:16 +0800 |
---|---|---|
committer | Liio Chen <liio@qq.com> | 2015-01-27 16:44:16 +0800 |
commit | c06011fa1d48d84ca0e99c2e99cceae4b0d0e973 (patch) | |
tree | 1445dc96670a5e0068686dba5a7b9d67ac100ba8 | |
parent | e4c914e261d2647e44d05222afa7aa3cc90d3c67 (diff) | |
download | nuttx-c06011fa1d48d84ca0e99c2e99cceae4b0d0e973.tar.gz nuttx-c06011fa1d48d84ca0e99c2e99cceae4b0d0e973.tar.bz2 nuttx-c06011fa1d48d84ca0e99c2e99cceae4b0d0e973.zip |
Update work_thread.c
Here wrong?
-rw-r--r-- | nuttx/libc/wqueue/work_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/libc/wqueue/work_thread.c b/nuttx/libc/wqueue/work_thread.c index b534ab46d..6ef8a874b 100644 --- a/nuttx/libc/wqueue/work_thread.c +++ b/nuttx/libc/wqueue/work_thread.c @@ -175,7 +175,8 @@ static void work_process(FAR struct wqueue_s *wqueue) * scheduled wakeup interval? */ - remaining = elapsed - work->delay; + /* Here: elapsed < work->delay */ + remaining = work->delay - elapsed; if (remaining < next) { /* Yes.. Then schedule to wake up when the work is ready */ |