Augustin Cavalier f9c77b11ed app_server: Clean up MultiLocker::IsWriteLocked().
This function was (or at least now is) severely over-engineered:
it is designed to avoid calling find_thread(NULL) as little
as possible, and use stack addresses to determine if the current
thread is the one holding the write lock.

However, this is unneccessary, as find_thread(NULL) has been
optimized (on x86 and x86_64, at least) to be a single "mov"
from thread-local data, with no syscall. So that is probably
even faster than an integer divide and compare, allowing
this function to be simplified greatly.
2019-07-27 23:06:24 -04:00
..
2019-07-22 23:43:04 +00:00
2019-07-16 20:26:45 +02:00
2019-07-27 15:16:31 +00:00