summaryrefslogtreecommitdiff
path: root/py/builtin.h
diff options
context:
space:
mode:
authorMikhail Zakharov <mikhail.zakharov@cognitivesystems.com>2019-01-02 10:44:52 -0500
committerDamien George <damien.p.george@gmail.com>2019-01-27 12:40:10 +1100
commit18723e9889626a0700c2defaeba82e86b0b6f08a (patch)
tree388f55ced3696a5f4eefa98ebf038f69d56bbc42 /py/builtin.h
parent1e7b4222268d49c6a0e7b5a0033d3b25061653a7 (diff)
unix/mpthreadport: Remove busy wait loop in thread garbage collection.
One can't use pthread calls in a signal handler because they are not async-signal-safe (see man signal-safety). Instead, sem_post can be used to post from within a signal handler and this should be more efficient than using a busy wait loop, waiting on a volatile variable.
Diffstat (limited to 'py/builtin.h')
0 files changed, 0 insertions, 0 deletions