Changeset f2cb80a in mainline for kernel/test/synch/semaphore1.c
- Timestamp:
- 2024-02-23T17:57:23Z (11 months ago)
- Children:
- 192019f
- Parents:
- 86f862c (diff), 90ba06c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-02-23 17:57:23)
- git-committer:
- GitHub <noreply@…> (2024-02-23 17:57:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/semaphore1.c
r86f862c rf2cb80a 89 89 thrd = thread_create(consumer, NULL, TASK, 90 90 THREAD_FLAG_NONE, "consumer"); 91 if (thrd) 92 thread_ready(thrd); 93 else 91 if (thrd) { 92 thread_start(thrd); 93 thread_detach(thrd); 94 } else { 94 95 TPRINTF("could not create consumer %d\n", i); 96 } 95 97 } 96 98 for (k = 0; k < (4 - i); k++) { 97 99 thrd = thread_create(producer, NULL, TASK, 98 100 THREAD_FLAG_NONE, "producer"); 99 if (thrd) 100 thread_ready(thrd); 101 else 101 if (thrd) { 102 thread_start(thrd); 103 thread_detach(thrd); 104 } else { 102 105 TPRINTF("could not create producer %d\n", i); 106 } 103 107 } 104 108 }
Note:
See TracChangeset
for help on using the changeset viewer.