diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-12 15:02:23 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-12 15:02:23 +0000 |
commit | a7ad3ace523d19be103e03f6244e0e797354fe0f (patch) | |
tree | 62234f13c1fcb3477d16f5727b60503900b87f7f /src/chthreads.c | |
parent | 48cdf91217fd6460628315a63ccc9e87de21c193 (diff) | |
download | ChibiOS-a7ad3ace523d19be103e03f6244e0e797354fe0f.tar.gz ChibiOS-a7ad3ace523d19be103e03f6244e0e797354fe0f.tar.bz2 ChibiOS-a7ad3ace523d19be103e03f6244e0e797354fe0f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@87 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r-- | src/chthreads.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chthreads.c b/src/chthreads.c index 56ab4969e..9729a9b59 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -28,7 +28,9 @@ * Initializes a thread structure.
*/
void _InitThread(t_prio prio, t_tmode mode, Thread *tp) {
+ static t_tid nextid = 0;
+ tp->p_tid = nextid++;
tp->p_flags = mode;
tp->p_prio = prio;
tp->p_rdymsg = RDY_OK;
|