haiku/headers
Augustin Cavalier 37eda488be kernel/condition_variable: Granularize locking.
Before this commit, *all* ConditionVariable operations (yes, all;
even Wait, Notify, etc.) went through a single spinlock, that also
protected the sConditionVariableHash. This obviously does not scale
so well with core count, to say the least!

With this commit, we add spinlocks to each Variable and Entry.
This makes locking somewhat more complicated (and nuanced; see
inline comment), but the trade-off seems completely worth it:

(compile HaikuDepot in VMware, 2 cores)
before
real 1m20.219s
user 1m5.619s
sys  0m40.724s

after
real 1m12.667s
user 0m57.684s
sys  0m37.251s

The more cores there are, the more of an optimization this will
likely prove to be. But 10%-across-the-board is not bad to say
the least.

Change-Id: I1e40a997fff58a79e987d7cdcafa8f7358e1115a
2019-08-03 11:24:34 -04:00
..
build Implement is_app_showing_modal_window() 2019-08-03 00:41:10 +00:00
compatibility Add a features.h to auto enable _DEFAULT_SOURCE 2019-07-29 20:26:46 +00:00
config riscv32: Drop any remaining mentions 2019-04-04 13:23:32 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc
libs PVS V501: comparing number with itself 2019-07-28 10:16:43 +00:00
os PVS V542: operator precedence issue accross macro expansion 2019-07-31 02:13:01 +00:00
posix Conform putenv to POSIX standards 2019-07-20 16:02:00 +00:00
private kernel/condition_variable: Granularize locking. 2019-08-03 11:24:34 -04:00
tools Fix #12799: Enable elf symbol patching for Haiku 2016-10-30 10:42:24 +01:00