You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by pe...@apache.org on 2016/11/17 00:19:41 UTC
incubator-mynewt-core git commit: MYNEWT-7: add check for waiting on
eventq
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 03c38d938 -> 562093f56
MYNEWT-7: add check for waiting on eventq
A flag signifying waiting on eventq was missed in os_task_suspend.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/562093f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/562093f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/562093f5
Branch: refs/heads/develop
Commit: 562093f566518e36f87b15e92a20c60df222789b
Parents: 03c38d9
Author: Peter Snyder <pe...@apache.org>
Authored: Wed Nov 16 16:15:55 2016 -0800
Committer: Peter Snyder <pe...@apache.org>
Committed: Wed Nov 16 16:18:30 2016 -0800
----------------------------------------------------------------------
kernel/os/src/os_task.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/562093f5/kernel/os/src/os_task.c
----------------------------------------------------------------------
diff --git a/kernel/os/src/os_task.c b/kernel/os/src/os_task.c
index f892ae9..a28e9cf 100644
--- a/kernel/os/src/os_task.c
+++ b/kernel/os/src/os_task.c
@@ -178,7 +178,8 @@ os_task_suspend(struct os_task *t)
/*
* Disallowing suspending tasks which are waiting on a lock
*/
- if (t->t_flags && (OS_TASK_FLAG_SEM_WAIT | OS_TASK_FLAG_MUTEX_WAIT)) {
+ if (t->t_flags && (OS_TASK_FLAG_SEM_WAIT | OS_TASK_FLAG_MUTEX_WAIT |
+ OS_TASK_FLAG_EVQ_WAIT)) {
return OS_EBUSY;
}