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 #70

Closed
wants to merge 7 commits into from
Closed

Conversation

190n
Copy link

@190n 190n commented Dec 3, 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

The Git diff here is massive because I merged main and then reverted that. Once main is in a better state I can merge it again and I think that should tidy up the diff.

190n added a commit to oven-sh/bun that referenced this pull request Dec 4, 2024
@190n 190n closed this Dec 5, 2024
@190n 190n deleted the ben/run-loop-bun branch December 5, 2024 18:14
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.

1 participant