Skip to content

Remove librustrt, audio Task #242

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

Merged
merged 2 commits into from
Dec 22, 2014
Merged

Remove librustrt, audio Task #242

merged 2 commits into from
Dec 22, 2014

Conversation

nukep
Copy link
Contributor

@nukep nukep commented Dec 21, 2014

librustrt and Task have been removed: rust-lang/rust#19654. This pull request is pretty much only code removal.
Basically, no manual runtime initialization needs to be done when calling Rust from C anymore. It should now "just work".

With all that said and done, I do have some concerns that might be amended in the future:

  1. If the Audio callback thread panics, the entire program will abort (because the panic crosses the C -> Rust boundary). This can be unpleasant, as other threads won't be able to gracefully unwind if this happens.
  2. In the future, I'd like for the Audio thread to be named in case of a panic (it currently spits out something like thread "<unnamed>" panicked at "Noes", ...). There doesn't seem to be a way to set the name of a native thread yet.

This is based off Gekkio's pull request #238, which hasn't been merged yet. :)
Probably a non-issue, but it might be best to accept their pull request first. I'm not quite sure what happens if a pull request includes someone else's pull request. :/

Gekkio and others added 2 commits December 19, 2014 15:34
If a macro expands to items, braces or a semicolon is now needed
Due to recent changes, librustrt and Task are now deprecated.
Calling Rust from C should now "just work".
@bvssvni
Copy link
Collaborator

bvssvni commented Dec 22, 2014

Please merge this as well :)

@AngryLawyer
Copy link
Member

Just got on lunch, will do it now and roll a release.

AngryLawyer added a commit that referenced this pull request Dec 22, 2014
Remove librustrt, audio Task
@AngryLawyer AngryLawyer merged commit 96732b4 into Rust-SDL2:master Dec 22, 2014
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.

4 participants