[kernel] Add resched option to sem_post

This commit is contained in:
Chris Anderson
2014-07-11 18:54:17 -07:00
committed by Brian Swetland
parent 3a284a685d
commit 5bc6f97090
3 changed files with 4 additions and 4 deletions

View File

@@ -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;