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 | 43e15338e2b2543c3fe8946baf8c654299eb0225 (patch) | |
| tree | 3f5486ca7f48efbba00fe4b2bd1c0e5d2aee8964 /src/core/loader/nso.cpp | |
| parent | 04a03446d36c3943cc45b75308cc825ac7820f48 (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/core/loader/nso.cpp')
0 files changed, 0 insertions, 0 deletions
