summaryrefslogtreecommitdiff
path: root/libusb/core.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-03-27 00:03:41 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-03-27 00:03:41 -0700
commit30b56baec51b70d5b10f1f14ff47327ecc8ebbd0 (patch)
tree1e5fbc312cff509037a75c81a24bea5708394df5 /libusb/core.c
parent1d67425879c3ae515e97b73df94bf2e7336178b0 (diff)
downloadlibusb-30b56baec51b70d5b10f1f14ff47327ecc8ebbd0.tar.gz
threads_posix: Improve usbi_get_tid() for various platforms
Add support for real thread IDs on macOS 10.6 and later using the new pthread_threadid_np() function. Add support for thread IDs on Haiku, NetBSD and Solaris. Provide a fallback value other than -1 when direct support is not available. This should suffice as a unique identifier since pthread_t, while opaque, is still distinct amongst active threads. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/core.c')
0 files changed, 0 insertions, 0 deletions