|
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
b/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();
else
while(stk.push(id) == false)
- /*thread::yield()*/;
+ thread::yield();
++push_count;
}
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk