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

Redox support #6

Merged
merged 2 commits into from Jun 26, 2017

Conversation

3 participants
@ids1024
Contributor

ids1024 commented Jun 22, 2017

No description provided.

src/lib.rs Outdated
#[cfg(target_os = "redox")]
#[inline]
fn get_internal() -> usize {
syscall::getpid().unwrap()

This comment has been minimized.

@ruuda

ruuda Jun 22, 2017

Owner

I am not familiar with Redox internals, but on Linux at least there is a distinction between the process id and the thread id. Could you please add a comment to explain why getpid is the right thing to call here? Is there even a distinction between processes and threads on Redox?

This comment has been minimized.

@jackpot51

jackpot51 Jun 23, 2017

It is true that threads are simply processes on Redox, which share memory with other processes.

This comment has been minimized.

@jackpot51

jackpot51 Jun 23, 2017

In other words, creating a new thread will create a new process ID

This comment has been minimized.

@ruuda

ruuda Jun 26, 2017

Owner

Thanks for the clarification!

@ruuda ruuda merged commit cdff8f8 into ruuda:master Jun 26, 2017

1 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ruuda

This comment has been minimized.

Owner

ruuda commented Jun 26, 2017

Thanks! Should I publish a new version on crates.io?

@ids1024

This comment has been minimized.

Contributor

ids1024 commented Jun 26, 2017

Yes, that would be helpful. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment