Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
replace pthread_yield with POSIX sched_yield
  • Loading branch information
clandmeter authored and perexg committed May 31, 2016
1 parent 82edc90 commit d923d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api_idnode.c
Expand Up @@ -651,7 +651,7 @@ api_idnode_handler
}
pthread_mutex_unlock(&global_lock);
if (destroyed)
pthread_yield(); /* delete penalty */
sched_yield(); /* delete penalty */
}
htsmsg_destroy(msg);

Expand Down

0 comments on commit d923d0a

Please sign in to comment.