]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/test/test_9856.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / thread / test / test_9856.cpp
index 918d232d5baf35ddae0254335c436261ba04fb39..b7dcc6e37d861686514b4cdc65d302d4fa5ead4b 100644 (file)
@@ -6,7 +6,7 @@ using namespace boost;
 
 int main() {
     atomic<size_t> total(0), failures(0);
-    
+
 #pragma omp parallel shared(total, failures) num_threads(1000)
     {
       mutex mtx;
@@ -20,10 +20,10 @@ int main() {
     }
     if(failures)
       std::cout << "There were " << failures << " failures out of " << total << " timed waits." << std::endl;
-    if((100*failures)/total>10)
+    if((100*failures)/total>40)
     {
       std::cerr << "This exceeds 10%, so failing the test." << std::endl;
       return 1;
     }
     return 0;
-}
\ No newline at end of file
+}