summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/condition_variable.cpp
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2013-07-09 09:01:44 +0000
committeravg <avg@FreeBSD.org>2013-07-09 09:01:44 +0000
commit44c288e1496cf711ed470b921a3dc028c75fffe3 (patch)
tree0e3df933b35a6abe659511e476c5f9d33eea660e /contrib/libc++/src/condition_variable.cpp
parent22e327d0053fd6094d76854a6c73d640ef59799a (diff)
downloadFreeBSD-src-44c288e1496cf711ed470b921a3dc028c75fffe3.zip
FreeBSD-src-44c288e1496cf711ed470b921a3dc028c75fffe3.tar.gz
should_yield: protect from td_swvoltick being uninitialized or too stale
The distance between ticks and td_swvoltick should be calculated as an unsigned number. Previously we could end up comparing a negative number with hogticks in which case should_yield() would give incorrect answer. We should probably ensure that td_swvoltick is properly initialized. Sponsored by: HybridCluster MFC after: 5 days
Diffstat (limited to 'contrib/libc++/src/condition_variable.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud