Skip to content

Implement os.getpriority and os.setpriority - #2453

Merged
coolreader18 merged 2 commits into
RustPython:masterfrom
kenkoooo:feature/os_get_set_priority
Feb 15, 2021
Merged

coolreader18 merged 2 commits into
RustPython:masterfrom
kenkoooo:feature/os_get_set_priority

Conversation

@kenkoooo

Copy link
Copy Markdown
Contributor

Implemented os.getpriority and os.setpriority.

Ref: #1175

@kenkoooo kenkoooo mentioned this pull request Feb 13, 2021
@kenkoooo
kenkoooo force-pushed the feature/os_get_set_priority branch 2 times, most recently from e9ab804 to ad82f59 Compare February 13, 2021 10:39
@kenkoooo

kenkoooo commented Feb 13, 2021 •

Copy link
Copy Markdown
Contributor Author

Since the interface of libc differs between linux-gnu and others, I put duplicated code. If you have any suggestions on this, please let me know.
I use cfg_if! for that. Could you please take a look? Thanks!

@kenkoooo
kenkoooo force-pushed the feature/os_get_set_priority branch from ad82f59 to 02c4357 Compare February 13, 2021 15:15

@coolreader18 coolreader18 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thank you for contributing!

@coolreader18
coolreader18 merged commit c558335 into RustPython:master Feb 15, 2021
@kenkoooo
kenkoooo deleted the feature/os_get_set_priority branch February 15, 2021 03:19
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