Skip to content
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

Implemented StableApiDefinition::thread_sleep for TruffleRuby. #457

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

goyox86
Copy link
Collaborator

@goyox86 goyox86 commented Nov 27, 2024

Closes #450

Very naive implementation, I think we probably should be using something that allows us to go sub-second. someting that takes a pointer to `rb_cTime or directly a timeval.

@goyox86 goyox86 marked this pull request as ready for review December 2, 2024 17:57
@goyox86 goyox86 changed the title First pass at implementing StableApiDefinition::thread_sleep. First pass at implementing StableApiDefinition::thread_sleep for TruffleRuby. Dec 2, 2024
@ianks
Copy link
Collaborator

ianks commented Dec 4, 2024

@goyox86 can we use rb_thread_wait_for??

@goyox86 goyox86 force-pushed the goyox86/stable-api-thread-sleep branch 2 times, most recently from 1451bb0 to 68136ea Compare December 11, 2024 21:27
@goyox86 goyox86 changed the title First pass at implementing StableApiDefinition::thread_sleep for TruffleRuby. Implemented StableApiDefinition::thread_sleep for TruffleRuby. Dec 11, 2024
@goyox86 goyox86 force-pushed the goyox86/stable-api-thread-sleep branch from 68136ea to 35f90e0 Compare December 11, 2024 21:33
@goyox86 goyox86 requested a review from ianks December 11, 2024 21:48
@goyox86
Copy link
Collaborator Author

goyox86 commented Dec 11, 2024

@goyox86 can we use rb_thread_wait_for??

Done!

@ianks ianks merged commit b932fe6 into oxidize-rb:main Dec 11, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement new StableApiDefinition::thread_sleep
2 participants