#16170 closed enhancement (fixed)
wxThread handle getter
Reported by: | troelsk | Owned by: | VZ |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | base | Version: | dev-latest |
Keywords: | wxThread | Cc: | |
Blocked By: | Blocking: | ||
Patch: | no |
Description
Thread handle getter, MSWGetHandle(), in addition to the thread id getter, GetId().
(I need this to track threads; I'm tracking threads created, by handle, some created from C without a wxThread instance. Tracking by id is impractical/instrusive, would involve touching numerous 'stable' legacy modules)
Attachments (1)
Change History (4)
Changed 4 years ago by troelsk
comment:1 Changed 4 years ago by vadz
comment:2 Changed 4 years ago by VZ
- Owner set to VZ
- Resolution set to fixed
- Status changed from new to closed
In 76418:
comment:3 Changed 4 years ago by troelsk
Thanks! This helped me out of a pinch. And the handle is more useful than the id on Windows, the API is using handles almost exclusively (except for PostThreadMessage)
Note: See
TracTickets for help on using
tickets.
I wonder if it would make sense to have a "portable" GetHandle() returning the same thing as GetId() under the other platforms.
What do people think?