Author: file Date: Wed Aug 14 14:06:59 2013 New Revision: 396658 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396658 Log: Tweak comment for why usleep is used. ........
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 Modified: trunk/ (props changed) trunk/tests/test_hashtab_thrash.c Propchange: trunk/ ------------------------------------------------------------------------------ Binary property 'branch-11-merged' - no diff available. Modified: trunk/tests/test_hashtab_thrash.c URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_hashtab_thrash.c?view=diff&rev=396658&r1=396657&r2=396658 ============================================================================== --- trunk/tests/test_hashtab_thrash.c (original) +++ trunk/tests/test_hashtab_thrash.c Wed Aug 14 14:06:59 2013 @@ -207,7 +207,9 @@ 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 */ -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits
