........
Merged revisions 396656 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 396657 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396658
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
ast_hashtab_end_traversal(it);
if (last_count == count) {
- /* Allow other threads to run. */
+ /* Give other threads ample chance to run, note that using sched_yield here does not
+ * provide enough of a chance and can cause this thread to starve others.
+ */
usleep(1);
} else if (last_count > count) {
/* Make sure the hashtable never shrinks */