Searched refs:my_id (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.4.0/samples/kernel/condition_variables/condvar/src/ |
D | main.c | 28 long my_id = (long)p1; in inc_count() local 42 __func__, my_id, count); in inc_count() 47 __func__, my_id, count); in inc_count() 57 long my_id = (long)p1; in watch_count() local 59 printk("Starting %s: thread %ld\n", __func__, my_id); in watch_count() 64 __func__, my_id, count); in watch_count() 68 __func__, my_id, count); in watch_count() 71 __func__, my_id); in watch_count() 73 printk("%s: thread %ld count now = %d.\n", __func__, my_id, count); in watch_count() 74 printk("%s: thread %ld Unlocking mutex.\n", __func__, my_id); in watch_count()
|
/Zephyr-Core-3.4.0/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/ |
D | main.c | 148 int my_id = POINTER_TO_INT(id); in philosopher() local 151 if (is_last_philosopher(my_id)) { in philosopher() 153 fork2 = fork(my_id); in philosopher() 155 fork1 = fork(my_id); in philosopher() 156 fork2 = fork(my_id + 1); in philosopher() 162 print_phil_state(my_id, " STARVING ", 0); in philosopher() 164 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher() 167 delay = get_random_delay(my_id, 25); in philosopher() 168 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 172 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher() [all …]
|
/Zephyr-Core-3.4.0/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/ |
D | main.c | 173 int my_id = POINTER_TO_INT(id); in philosopher() local 176 if (is_last_philosopher(my_id)) { in philosopher() 178 fork2 = fork(my_id); in philosopher() 180 fork1 = fork(my_id); in philosopher() 181 fork2 = fork(my_id + 1); in philosopher() 187 print_phil_state(my_id, " STARVING ", 0); in philosopher() 189 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher() 192 delay = get_random_delay(my_id, 25); in philosopher() 193 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 197 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher() [all …]
|
/Zephyr-Core-3.4.0/samples/philosophers/src/ |
D | main.c | 148 int my_id = POINTER_TO_INT(id); in philosopher() local 151 if (is_last_philosopher(my_id)) { in philosopher() 153 fork2 = fork(my_id); in philosopher() 155 fork1 = fork(my_id); in philosopher() 156 fork2 = fork(my_id + 1); in philosopher() 162 print_phil_state(my_id, " STARVING ", 0); in philosopher() 164 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher() 167 delay = get_random_delay(my_id, 25); in philosopher() 168 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 172 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher() [all …]
|
/Zephyr-Core-3.4.0/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 519 long my_id = (long)p1; in watch_count() local 521 printk("Starting %s: thread %ld\n", __func__, my_id); in watch_count()
|