[kernel] Add resched option to sem_post
This commit is contained in:
committed by
Brian Swetland
parent
3a284a685d
commit
5bc6f97090
@@ -61,7 +61,7 @@ static int semaphore_producer(void *unused)
|
||||
printf("semaphore producer %p starting up, running for %d iterations\n", get_current_thread(), sem_total_its);
|
||||
|
||||
for (int x = 0; x < sem_total_its; x++) {
|
||||
sem_post(&sem);
|
||||
sem_post(&sem, true);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user