Re: pthread_cond_timedwait() broken in 9-stable? (from JAN 10)

看板FB_stable作者時間14年前 (2012/02/17 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/16 (看更多)
On 2012/2/17 10:42, David Xu wrote: > aybe following code can check to see if TSC-LOW works by let the > thread run > on each cpu. > > refresh: gettimeofday(&prev, NULL); int cpu = 0; for (;;) { cpuset_t set; cpu = ++cpu % 4; CPU_ZERO(&set); CPU_SET(cpu, &set); pthread_setaffinity_np(pthread_self(), sizeof(set), &set); gettimeofday(&cur, NULL); if ( timercmp(&prev, &cur, >)) { abort(); } prev = cur; } _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1FFSBlfD (FB_stable)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 16 篇):
文章代碼(AID): #1FFSBlfD (FB_stable)