git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@724 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
9869b77a9a
commit
87805ba166
|
@ -50,7 +50,7 @@ static msg_t thread1(void *p) {
|
||||||
|
|
||||||
static void mtx1_execute(void) {
|
static void mtx1_execute(void) {
|
||||||
|
|
||||||
tprio_t prio = chThdGetPriority(); // Bacause priority inheritance.
|
tprio_t prio = chThdGetPriority(); // Because priority inheritance.
|
||||||
chMtxLock(&m1);
|
chMtxLock(&m1);
|
||||||
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, prio+1, thread1, "E");
|
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, prio+1, thread1, "E");
|
||||||
threads[1] = chThdCreateStatic(wa[1], WA_SIZE, prio+2, thread1, "D");
|
threads[1] = chThdCreateStatic(wa[1], WA_SIZE, prio+2, thread1, "D");
|
||||||
|
|
Loading…
Reference in New Issue