Searched refs:my_id (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/samples/kernel/condition_variables/condvar/src/ |
D | main.c | 27 long my_id = (long)p1; in inc_count() local 41 __func__, my_id, count); in inc_count() 46 __func__, my_id, count); in inc_count() 56 long my_id = (long)p1; in watch_count() local 58 printk("Starting %s: thread %ld\n", __func__, my_id); in watch_count() 63 __func__, my_id, count); in watch_count() 67 __func__, my_id, count); in watch_count() 70 __func__, my_id); in watch_count() 72 printk("%s: thread %ld count now = %d.\n", __func__, my_id, count); in watch_count() 73 printk("%s: thread %ld Unlocking mutex.\n", __func__, my_id); in watch_count()
|
/Zephyr-latest/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-latest/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-latest/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 my_fork2 = fork(my_id); in philosopher() 155 my_fork1 = fork(my_id); in philosopher() 156 my_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-latest/samples/posix/philosophers/src/ |
D | main.c | 147 int my_id = POINTER_TO_INT(arg); in philosopher() local 150 if (is_last_philosopher(my_id)) { in philosopher() 152 my_fork2 = fork(my_id); in philosopher() 154 my_fork1 = fork(my_id); in philosopher() 155 my_fork2 = fork(my_id + 1); in philosopher() 161 print_phil_state(my_id, " STARVING ", 0); in philosopher() 163 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher() 166 delay = get_random_delay(my_id, 25); in philosopher() 167 print_phil_state(my_id, " EATING [ %s%d ms ] ", delay); in philosopher() 171 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher() [all …]
|
/Zephyr-latest/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 535 long my_id = (long)p1; in watch_count() local 537 printk("Starting %s: thread %ld\n", __func__, my_id); in watch_count()
|