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
Этот коммит содержится в:
Tao Sang
2024-10-14 23:34:37 -04:00
коммит произвёл Tao Sang
родитель d208e8052f
Коммит f2ff56af9c
4 изменённых файлов: 152 добавлений и 60 удалений
-1
Просмотреть файл
@@ -29,7 +29,6 @@
#include <utility>
namespace amd {
MonitorBase::~MonitorBase() {}
namespace legacy_monitor {