diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-15 14:52:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-15 14:52:56 +0000 |
commit | 70c86d43ec79032c7172507fc12bf7d78d44a3de (patch) | |
tree | ebb5d12bddd55f84a711f0becc1f8c8960744cb2 /src/include/threads.h | |
parent | 779840691f4f6b3bb647d85f160ce238defa2de0 (diff) | |
download | ChibiOS-70c86d43ec79032c7172507fc12bf7d78d44a3de.tar.gz ChibiOS-70c86d43ec79032c7172507fc12bf7d78d44a3de.tar.bz2 ChibiOS-70c86d43ec79032c7172507fc12bf7d78d44a3de.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@53 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/threads.h')
-rw-r--r-- | src/include/threads.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/threads.h b/src/include/threads.h index 0440b6007..3e1713d31 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -192,8 +192,10 @@ extern "C" { Thread *chThdCreate(t_prio prio, t_tmode mode, void *workspace,
t_size wsize, t_tfunc pf, void *arg);
void chThdSetPriority(t_prio newprio);
- void chThdResume(Thread *tp);
void chThdExit(t_msg msg);
+#ifdef CH_USE_RESUME
+ void chThdResume(Thread *tp);
+#endif
#ifdef CH_USE_TERMINATE
void chThdTerminate(Thread *tp);
#endif
@@ -240,6 +242,13 @@ extern "C" { */
#define chThdGetExitEventSource(tp) (&(tp)->p_exitesource)
+/**
+ * Resumes a thread created with the \p P_SUSPENDED option or suspended with
+ * \p chThdSuspend().
+ * @param tp the pointer to the thread
+ */
+#define chThdResumeI(tp) chSchReadyI(tp)
+
#endif /* _THREADS_H_ */
/** @} */
|