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
Plug Thread.Sleep() #543
Comments
You can use this: You can calculate left time by adding seconds or minutes to Time.Now. |
Yes but we want the true implementation and correct way is to use PIT. |
There's a PIT implementation in HAL, but I don't know if it works: https://github.com/CosmosOS/Cosmos/blob/master/source/Cosmos.HAL/PIT.cs |
I am willing to take this challenge. |
Perfect @jteugels! If you need help in this task please ask in the Cosmos main chat: https://gitter.im/CosmosOS/Cosmos?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge |
Thread.Sleep() seems to be done differently in Net Core so could be needed to be done differently when we merge Net Core... working on this now maybe is a not wanted sovrapposition |
#833 |
#863 Fixes this but right now it is going to fast and only works when debugging is disabled |
Resolved by #867. |
To plug Thread.Sleep() is needed to program the PIT to trigger an event (an interrupt) to OS when the specified time is elapsed.
See here for more information:
http://wiki.osdev.org/Programmable_Interval_Timer
The text was updated successfully, but these errors were encountered: