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

Attributes for native items #609

Closed
brson opened this issue Jul 1, 2011 · 1 comment
Closed

Attributes for native items #609

brson opened this issue Jul 1, 2011 · 1 comment
Assignees
Labels
A-frontend Area: frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Jul 1, 2011

Attributes can be applied to native modules but not the items in those modules. For completeness, this seems like it should be allowed.

@graydon
Copy link
Contributor

graydon commented Jul 1, 2011

Not just completeness; this is necessary for any serious level of binding to external libraries (with ABI / symbol version / name mangling specifics varying per-platform and sometimes per-symbol)

@ghost ghost assigned brson Jul 1, 2011
@brson brson closed this as completed in 8499c77 Jul 5, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
… r=alexcrichton

Add schedule params & priority pthread functions

Fixes rust-lang#609. Provides bindings to `pthread_getschedparam`, `pthread_setschedparam` and `pthread_setschedprio` functions.

P.S. My first PR in such a project.
P.P.S. `libc-test` crashed at building stage with a lot of errors, so I hope `travis` will do a check.
P.P.P.S. These functions are tested to work on Linux (Ubuntu 14.04) with my own crate. I will release it next week, it provides ability to control thread schedule policies and priorities.
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants