summaryrefslogtreecommitdiff
path: root/logo.png
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2017-08-23 19:18:38 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2017-08-24 07:02:55 +0200
commitd806ad4a3dcf7308147e1a243092d22091560d7d (patch)
tree1aa556f49cb1b6908902387ea122d953aa6d7d45 /logo.png
parenta560a6211868d517908f44e1ea90336b18cdb97d (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 'logo.png')
0 files changed, 0 insertions, 0 deletions