From: Cyril H. <ch...@su...> - 2011-06-30 15:05:04
|
Hi! > I'm sorry. Here, I made a mistake. > sched_yield() is a system call, which calls schedule() in kernel. It yields > the current CPU to other tasks. > So why did it sometimes pass, but sometimes fail? But when using sleep(1) > instead of sched_yield(), it always passed? > Does it have anything to do with multi cpus? I've just commited patch to remove the test as after careful review, it turned out that there is no reasonable way how to test that two condition variables are initalized exactly same way. (same goes for 1-3 and 2-2). -- Cyril Hrubis ch...@su... |