Skip to content

Tuning pthread_key_t #20652

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 1 commit into from
Jan 7, 2015
Merged

Tuning pthread_key_t #20652

merged 1 commit into from
Jan 7, 2015

Conversation

vhbit
Copy link
Contributor

@vhbit vhbit commented Jan 6, 2015

This is a manual merge of #20627 and #20634 to avoid conflicts in rollup and also avoid one roundtrip. I've leave copyright to original author. If this one is moved to rollup original PR could be closed. cc @mneumann

@alexcrichton r?

Both FreeBSD and DragonFly define pthread_key_t as int, while Linux
defines it as uint. As pthread_key_t is used as an opaque type and
storage size of both int and uint are the same, this is rather a
cosmetic change.

iOS uses ulong (as OS X) so difference is critical on 64bit platforms.

Both FreeBSD and DragonFly define pthread_key_t as int, while Linux
defines it as uint. As pthread_key_t is used as an opaque type and
storage size of both int and uint are the same, this is rather a
cosmetic change.

iOS uses ulong (as OS X) so difference is critical on 64bit platforms.
@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@vhbit vhbit mentioned this pull request Jan 6, 2015
@sinistersnare
Copy link
Contributor

NB, the correct syntax for naming an asignee is r? @NAME, not @NAME r?

@vhbit
Copy link
Contributor Author

vhbit commented Jan 6, 2015

@sinistersnare thanks,
r? @alexcrichton

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 7, 2015
This is a manual merge of rust-lang#20627 and rust-lang#20634 to avoid conflicts in rollup and also avoid one roundtrip. I've leave copyright to original author.  If this one is moved to rollup original PR could be closed. cc @mneumann

@alexcrichton r?

Both FreeBSD and DragonFly define pthread_key_t as int, while Linux
defines it as uint. As pthread_key_t is used as an opaque type and
storage size of both int and uint are the same, this is rather a
cosmetic change.

iOS uses ulong (as OS X) so difference is critical on 64bit platforms.
@alexcrichton alexcrichton merged commit 134eb0e into rust-lang:master Jan 7, 2015
@vhbit vhbit deleted the thread-key-type branch January 8, 2015 08:10
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.

6 participants