Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for getting pthread_t from JoinHandle #29791
Comments
alexcrichton
added
T-libs
B-unstable
labels
Nov 12, 2015
alexcrichton
referenced this issue
Nov 12, 2015
Closed
AsRawHandle and IntoRawHandle for JoinHandle #29461
This comment has been minimized.
This comment has been minimized.
|
See #29461. |
This comment has been minimized.
This comment has been minimized.
|
This ended up not landing just yet, so closing for now, can reopen if it's resubmitted though. |
alexcrichton
closed this
Dec 2, 2015
alexcrichton
referenced this issue
Dec 4, 2015
Merged
AsRawHandle IntoRawHandle and JoinHandleExt for JoinHandle #30177
This comment has been minimized.
This comment has been minimized.
|
Gonna reopen with #30177 in the queue |
alexcrichton
reopened this
Dec 4, 2015
This comment has been minimized.
This comment has been minimized.
markuskobler
commented
Feb 25, 2016
|
Looks like |
This comment has been minimized.
This comment has been minimized.
|
The documentation for |
This comment has been minimized.
This comment has been minimized.
markuskobler
commented
Feb 25, 2016
|
Am I missing something obious. Is it not a case of exposing the following inner type with a |
This comment has been minimized.
This comment has been minimized.
markuskobler
commented
Feb 25, 2016
|
Ignore me I understand the issue now. The use case I was after was something I thought would be as simple as |
This comment has been minimized.
This comment has been minimized.
|
@retep998 what our (representation of a) handle to a thread is, is up to us, not the operating system. As long as we’re capable of communicating to the OS’s threads, that is. |
This comment has been minimized.
This comment has been minimized.
|
@nagisa The point was simply that @markuskobler To get the current OS thread handle you can just use |
alexcrichton
added
the
I-nominated
label
Mar 9, 2016
This comment has been minimized.
This comment has been minimized.
|
Some questions to consider as part of FCP:
|
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Mar 11, 2016
This comment has been minimized.
This comment has been minimized.
|
Providing this sort of API through |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this during triage yesterday and the decision was to stabilize what we have as-is. We are likely to add these methods in any scenario and we can always add the methods to |
alexcrichton commentedNov 12, 2015
This is a tracking issue for the
thread_extensionsfeature in the standard library which allows acquiring apthread_tfrom aJoinHandleon Unix. Some questions on this are:Thread? (e.g. should we store the id there)JoinHandleExtok?pthread_tfrom aThreadcan you also get aHANDLEfrom one on Windows?