diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-27 10:22:40 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-27 10:22:40 +0000 |
commit | 71ccd7eb14c4cb3cc4362feda7adc19ec2fd0ff8 (patch) | |
tree | e136d0d671a42cf67fd79853385bd6a100468b61 /os/rt/src/chthreads.c | |
parent | 56a33f50edb32b44b68125c961ae9125431b7965 (diff) | |
download | ChibiOS-71ccd7eb14c4cb3cc4362feda7adc19ec2fd0ff8.tar.gz ChibiOS-71ccd7eb14c4cb3cc4362feda7adc19ec2fd0ff8.tar.bz2 ChibiOS-71ccd7eb14c4cb3cc4362feda7adc19ec2fd0ff8.zip |
Renamed thread field "preempt" in "ticks" for clearness.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11079 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src/chthreads.c')
-rw-r--r-- | os/rt/src/chthreads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 84a062b86..fcd6aefe3 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -91,7 +91,7 @@ thread_t *_thread_init(thread_t *tp, const char *name, tprio_t prio) { tp->state = CH_STATE_WTSTART;
tp->flags = CH_FLAG_MODE_STATIC;
#if CH_CFG_TIME_QUANTUM > 0
- tp->preempt = (tslices_t)CH_CFG_TIME_QUANTUM;
+ tp->ticks = (tslices_t)CH_CFG_TIME_QUANTUM;
#endif
#if CH_CFG_USE_MUTEXES == TRUE
tp->realprio = prio;
|