diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-10-12 14:07:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-10-12 14:07:18 +0000 |
commit | 967e54950ed604ab6ffe500dce41f25c27ede559 (patch) | |
tree | 5b3309270cfaf560302f137310ebecf1800f8f87 /os/nil/src/ch.c | |
parent | eb08d040472304b0bf267a7a0de58f7110dbcdb9 (diff) | |
download | ChibiOS-967e54950ed604ab6ffe500dce41f25c27ede559.tar.gz ChibiOS-967e54950ed604ab6ffe500dce41f25c27ede559.tar.bz2 ChibiOS-967e54950ed604ab6ffe500dce41f25c27ede559.zip |
Added one missing function variant.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12354 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/nil/src/ch.c')
-rw-r--r-- | os/nil/src/ch.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/os/nil/src/ch.c b/os/nil/src/ch.c index a15a986a5..38fb936e2 100644 --- a/os/nil/src/ch.c +++ b/os/nil/src/ch.c @@ -740,6 +740,24 @@ void chThdResumeI(thread_reference_t *trp, msg_t msg) { }
/**
+ * @brief Wakes up a thread waiting on a thread reference object.
+ * @note This function must reschedule, it can only be called from thread
+ * context.
+ *
+ * @param[in] trp a pointer to a thread reference object
+ * @param[in] msg the message code
+ *
+ * @api
+ */
+void chThdResume(thread_reference_t *trp, msg_t msg) {
+
+ chSysLock();
+ chThdResumeI(trp, msg);
+ chSchRescheduleS();
+ chSysUnlock();
+}
+
+/**
* @brief Suspends the invoking thread for the specified time.
*
* @param[in] timeout the delay in system ticks
|