[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-13 Thread Jake Tesler
Jake Tesler added the comment: PR was updated with tests and is ready for core developer review and then the merge to cpython:master. After that (if I understand correctly) a backport will automatically get picked into the 3.8 branch if there aren't any conflicts

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-07 Thread Jake Tesler
Jake Tesler added the comment: @vstinner PR created :) https://github.com/python/cpython/pull/17088 -- ___ Python tracker <https://bugs.python.org/issue38

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-07 Thread Jake Tesler
Change by Jake Tesler : -- keywords: +patch pull_requests: +16596 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17088 ___ Python tracker <https://bugs.python.org/issu

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-05 Thread Jake Tesler
Change by Jake Tesler : -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue38707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-05 Thread Jake Tesler
New submission from Jake Tesler : I have encountered a minor bug with the new `threading.get_native_id()` featureset in Python 3.8. The bug occurs when creating a new multiprocessing.Process object on Unix (or on any platform where the multiprocessing start_method is 'fork' or 'forkserver

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-11-05 Thread Jake Tesler
Change by Jake Tesler : -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue36084> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-10-31 Thread Jake Tesler
Jake Tesler added the comment: I have encountered a minor bug with this new feature. The bug occurs when creating a new multiprocessing.Process object on Unix (or on any platform where the multiprocessing start_method is 'fork' or 'forkserver'). When creating a new process via fork

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-07-18 Thread Jake Tesler
Change by Jake Tesler : -- pull_requests: +14636 pull_request: https://github.com/python/cpython/pull/14845 ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-23 Thread Jake Tesler
Jake Tesler added the comment: Michael Felt - If you would like some help with adding/building AIX support for this functionality, tag me, I'd be glad to help out! :) -- ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Jake Tesler
Jake Tesler added the comment: Victor – the return value of _start_new_thread is the the `ident` parameter, and its not the same as the native id. See here: https://github.com/python/cpython/pull/11993#issuecomment-491544908 -- ___ Python tracker

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Jake Tesler
Jake Tesler added the comment: I will look into whether adding thread_self() for AIX would be simple enough for this PR. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-22 Thread Jake Tesler
Jake Tesler added the comment: In general, I’ve concluded most ‘editions’ of pthread_self() are not the same value as this feature aims to implement. I’m not familiar enough with AIX to be certain about that platform, though. If there’s an equivalent function in AIX to capture the actual

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: Victor Stinner: would you mind taking a look at the new PR? Is this more along the lines of what you had in mind? -- ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: New PR created with requested edits. :) -- ___ Python tracker <https://bugs.python.org/issue36084> ___ ___ Python-bugs-list mailin

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Change by Jake Tesler : -- pull_requests: +13373 ___ Python tracker <https://bugs.python.org/issue36084> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: I will implement these changes - let’s try to hit that end-of-month target! -- ___ Python tracker <https://bugs.python.org/issue36

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread Jake Tesler
Jake Tesler added the comment: So where do we go from here? -- ___ Python tracker <https://bugs.python.org/issue36084> ___ ___ Python-bugs-list mailin

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-10 Thread Jake Tesler
Jake Tesler added the comment: The feature is supported on Windows: the file supporting Windows threading is `thread_nt.h`, not `thread_pthread.h` since Windows doesn't use POSIX-style threads. Also it is different from threading.get_ident() - ident is a Python-issued unique identifier

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-04-02 Thread Jake Tesler
Jake Tesler added the comment: *bump* Could someone look into reviewing this bug/PR? Thanks! -- ___ Python tracker <https://bugs.python.org/issue36084> ___ ___

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-02-22 Thread Jake Tesler
New submission from Jake Tesler : This functionality adds a native Thread ID to threading.Thread objects. This ID (TID), similar to the PID of a process, is assigned by the OS (kernel) and is generally used for externally monitoring resources consumed by the running thread (or process