Boost logo

Boost :

Subject: Re: [boost] [lockfree] include into 1.51?
From: Tim Blechmann (tim_at_[hidden])
Date: 2012-07-09 16:11:52

>> this suggests that either the third test case fails, or that that it
>> gets killed at some point. just to confirm, do you have a timeout for
>> the tests?
> Standard regression timeout, which I think is 5 minutes. Just ran it
> outside of regression on its own and it passed, so does suggest it was
> timeout.

hm ... i must admit that this is rather odd: the same test runs in about
0.5 seconds on my sandy bridge i7 (the release build in 0.3 seconds).

does this patch somehow improve the performance of the testsuite?

thanks, tim

diff --git a/libs/lockfree/test/test_common.hpp
index c2f2fc0..bd07428 100644
--- a/libs/lockfree/test/test_common.hpp
+++ b/libs/lockfree/test/test_common.hpp
@@ -42,10 +42,10 @@ struct queue_stress_tester

             if (Bounded)
                 while(stk.bounded_push(id) == false)
- /*thread::yield()*/;
+ thread::yield();
                 while(stk.push(id) == false)
- /*thread::yield()*/;
+ thread::yield();

Boost list run by bdawes at, gregod at, cpdaniel at, john at