summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-12-24 00:03:57 +0000
committerbernard.xiong <[email protected]>2009-12-24 00:03:57 +0000
commit8f90e129d3263103625f9c3ec7f43eee47b3d295 (patch)
tree6f52754b732fe1234c44266a0e255b1d3c813278 /src/ipc.c
parent9c4ff0c13530c11553d863777766ebeec6c37fb2 (diff)
clean up software timer code.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@222 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index b073e9f0f1..c005221d87 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -107,6 +107,10 @@ rt_inline rt_err_t rt_ipc_object_suspend(struct rt_ipc_object *ipc, struct rt_th
break;
}
}
+
+ /* not found a suitable position, append to the end of suspend_thread list */
+ if (n == &(ipc->suspend_thread))
+ rt_list_insert_before(&(ipc->suspend_thread), &(thread->tlist));
}
break;
}