Why does std::sleep_for(std::chrono::hours::max()) return immediately on linux?

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=eSAhV4N-LPU



Duration: 2:06
4 views
0


Why does std::sleep_for(std::chrono::hours::max()) return immediately on linux?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1792454/sonofagun)sonofagun
(stackoverflow.com/users/6752050/273k)273K
A special thanks goes out to the (https://stackoverflow.com/questions/77794791/why-does-stdsleep-forstdchronohoursmax-return-immediately-on-linux)Stackexchange community

I wish you all a wonderful day! Stay safe :)

c++ linux multithreading c++-chrono compiler-bug




Other Videos By Peter Schneider


2024-01-12In Firefox, is there a way to enqueue downloads to happen one at a time (sequentially)?
2024-01-12Move contents of JSON object one level up recursively
2024-01-12How can I create a list of range of numbers as a column of dataframe?
2024-01-12Softwareengineering: Is there a proper term for a "closed class hierarchy?"
2024-01-12Mathematica: Define list of local variables to be parsed to Module
2024-01-11Assumptions about dwPageSize on different systems
2024-01-11What is the 40 pin internal USB header used for?
2024-01-11Security: Network security in Docker containers
2024-01-11Salesforce: Is there a way to deploy a Lightning App in a managed package that would be visible t...
2024-01-11Ethereum: How do imports work in huff?
2024-01-11Why does std::sleep_for(std::chrono::hours::max()) return immediately on linux?
2024-01-11Can ghci tell us what instance of a class is being used
2024-01-11Dba: What is the idiomatic way to truncate a string down to 100 byte-pairs?
2024-01-11Something sends email to OpenDKIM even after purging it
2024-01-11Tuple syntax in Python
2024-01-11Codereview: EF save method that has three conditions
2024-01-11Ethereum: Proposer vs Aggregator rewards - who gets penalized?
2024-01-11Gis: Loading WMTS raster of geoservice using PyQGIS
2024-01-11Joomla: Getting ID of newly created model doesn't work
2024-01-11Dba: Postgres filter timestamptz column by date very slow (possibly index not used?)
2024-01-11Ethereum: ethers js queryFilter for ERC20 list of addresses



Tags:
c++
linux
multithreading
c++-chrono
compiler-bug