-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace usleep with std::this_thread::sleep_for #46143
Conversation
please test |
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46143/41937
|
A new Pull Request was created by @Dr15Jones for master. It involves the following packages:
@Dr15Jones, @makortel, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
FWCore/Concurrency/README.md
Outdated
@@ -170,7 +170,7 @@ Example: protecting `std::cout` so printouts do not intertwine. | |||
oneapi::tbb::task_group group; | |||
for(int i=0; i<3; ++i) { | |||
group.run([&queue, &group] { | |||
usleep(1000); | |||
std::this_thread::sleep_for(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a unit of time for this example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
POSIX has deprecated the use of usleep
d4f7fc6
to
5437d35
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46143/41938
|
Pull request #46143 was updated. @Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please check and sign again. |
please test |
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Expand to see more relval errors ...
Comparison SummarySummary:
|
failures due to das query failures. Not caused by this PR. |
Comparison differences are related to #39803 |
+core |
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @antoniovilela, @rappoccio, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) |
ignore tests-rejected with external-failure |
+1 |
PR description:
POSIX has deprecated the use of usleep
This was pointed out by the 'flaw finder' on the IB page.
PR validation:
code compiles.