Commit 8ced4c0
committed
Add mac/ios pthread_from_mach_thread_np
Allows us to get a pthread id from a match thread id.
From pthread.h [1]:
```
__API_AVAILABLE(macos(10.5), ios(2.0))
_Nullable pthread_t pthread_from_mach_thread_np(mach_port_t);
```
[1] - https://opensource.apple.com/source/libpthread/libpthread-416.40.3/pthread/pthread.h.auto.html1 parent ab3c229 commit 8ced4c0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
3395 | 3397 | | |
3396 | 3398 | | |
3397 | 3399 | | |
| 3400 | + | |
3398 | 3401 | | |
3399 | 3402 | | |
3400 | 3403 | | |
| |||
0 commit comments