[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: the tokyocabinet testsuite takes ages



On Thu, 2016-02-11 at 15:04 +0100, Samuel Thibault wrote:
> Samuel Thibault, on Thu 11 Feb 2016 14:50:17 +0100, wrote:
> > 
> 
> #if !defined(_POSIX_PRIORITY_SCHEDULING) && TCUSEPTHREAD
> #define sched_yield()                    usleep(1000 * 20)
> #endif
> 
> makes processes sleep for 20ms instead of just yielding.
> 
> We indeed do not have strict priority scheduling, only the classical
> nice/SCHED_OTHER priorities, so defining _POSIX_PRIORITY_SCHEDULING is
> not an option.
> 
> tokyocabinet however does not use these, so its demand for
> _POSIX_PRIORITY_SCHEDULING seems exagerated, and they could perhaps
> rather use
> 
> #if !defined(_POSIX_PRIORITY_SCHEDULING) && !defined(__GLIBC__) &&
> TCUSEPTHREAD
> #define sched_yield()                    usleep(1000 * 20)
> #endif

tokyocabinet builds fine with your patch. Did you submit a bug report?


Reply to: