diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-08-23 19:18:38 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-08-24 07:02:55 +0200 |
commit | d806ad4a3dcf7308147e1a243092d22091560d7d (patch) | |
tree | 1aa556f49cb1b6908902387ea122d953aa6d7d45 /drivers/unix/SCsub | |
parent | a560a6211868d517908f44e1ea90336b18cdb97d (diff) |
Implement custom thread numbering for POSIX
For every UNIX-derived (Android, Linux, macOS, iOS) flavor, a global counter is atomically incremented on thread start. That id is kept as thread-local storage.
Therefore, thread ids are sequential numbers, trivially comparable. This improves the previous state of things, in which `pthread_t` were casted to `Thread::ID` and unportabily compared. Also big, ugly thread ids appeared.
Diffstat (limited to 'drivers/unix/SCsub')
0 files changed, 0 insertions, 0 deletions