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

Make WTF::RunLoop::Timer use Bun's event loop (second attempt) #71

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

190n
Copy link

@190n 190n commented Dec 5, 2024

This adds and enables a USE(BUN_EVENT_LOOP) define, and when it's set, WTF::RunLoop::TimerBase is changed to be a wrapper for a timer object from Bun's event loop code in Zig. The Zig functions this depends on are made weak symbols, so that the JSC shell can still run when the functions are not linked.

WTF::RunLoop is changed to do nothing, with debug assertions in case any parts do really use it.

Related: oven-sh/bun#15557

Supersedes #70

@Jarred-Sumner Jarred-Sumner merged commit 4a95dbf into main Dec 6, 2024
19 checks passed
190n added a commit to oven-sh/bun that referenced this pull request Dec 6, 2024
190n added a commit to oven-sh/bun that referenced this pull request Dec 6, 2024
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.

2 participants