diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-07-12 21:27:24 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-07-12 21:27:24 -0300 |
commit | 9b38f4fc55607a92f7e4fee81a2c25c326f602f1 (patch) | |
tree | 3f5486ca7f48efbba00fe4b2bd1c0e5d2aee8964 /src/input_common/sdl/sdl_impl.cpp | |
parent | f1d8c83e1c3972a3500bc912b2217e81ddc08e13 (diff) |
kernel/scheduler: Use std::mutex instead of spin lock
Profiling shows that this is a highly contested mutex, causing dimishing
results compared to a OS lock. std::mutex implementations can spin for a
while before falling back to an OS lock.
This avoids wasting precious CPU cycles in a no-op.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions