Skip to content

getMonoTime bug on mac (?) #129

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

Closed
mratsim opened this issue May 9, 2020 · 1 comment
Closed

getMonoTime bug on mac (?) #129

mratsim opened this issue May 9, 2020 · 1 comment
Labels
bug 🪲 Something isn't working

Comments

@mratsim
Copy link
Owner

mratsim commented May 9, 2020

The change to the following time delay is seem to be guaranteed deadlock on Azure.

proc sleepingLion(stop_ms: int64): int64 =
let start = getMonoTime()
while true:
let elapsed = inMilliseconds(getMonoTime() - start)
if elapsed >= stop_ms:
return elapsed
dummy_cpt()

I suspect a getMonoTime bug on Mac in Nim.

Impact: need to change my test yet again.

@mratsim mratsim added the bug 🪲 Something isn't working label May 9, 2020
@mratsim
Copy link
Owner Author

mratsim commented May 9, 2020

Race condition on my test that manifested on patforms withslow pthread_create, see #128 (comment)

@mratsim mratsim closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant