SWDEV-458943 - Add fast path in wait()

wait() is redesigned with two pathes:
fast path: Use spinlock to wait for notify signal. If the
 signal hasn't been received for some loops, go to slow path.
slow path: Use condition_variable's wait().

Improve monitor wrapper for better performance.

Fix some bugs left from name removing patch.

Change-Id: I893a8353121a25d11e37c8e631caf31cc1fc1f24
Este cometimento está contido em:
Tao Sang criou e Tao Sang cometeu 2025-01-28 12:19:55 -05:00
1 ascendente d208e8052f
cometimento f2ff56af9c
4 ficheiros modificados
+152 -60

Não existem ficheiros que correspondam à sua pesquisa

-1
Ver ficheiro
@@ -29,7 +29,6 @@
#include <utility>
namespace amd {
MonitorBase::~MonitorBase() {}
namespace legacy_monitor {