mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
refactor: cleanup headers
Related-To: NEO-5548 Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f2b5126598
commit
2375ff89bb
@@ -11,6 +11,7 @@
|
||||
#include "shared/source/os_interface/windows/sys_calls_winmm.h"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
namespace NEO {
|
||||
bool DirectSubmissionController::sleep(std::unique_lock<std::mutex> &lock) {
|
||||
SysCalls::timeBeginPeriod(1u);
|
||||
@@ -20,7 +21,11 @@ bool DirectSubmissionController::sleep(std::unique_lock<std::mutex> &lock) {
|
||||
}
|
||||
|
||||
void DirectSubmissionController::overrideDirectSubmissionTimeouts(const ProductHelper &productHelper) {
|
||||
productHelper.overrideDirectSubmissionTimeouts(this->timeout, this->maxTimeout);
|
||||
uint64_t timeoutUs = this->timeout.count();
|
||||
uint64_t maxTimeoutUs = this->maxTimeout.count();
|
||||
productHelper.overrideDirectSubmissionTimeouts(timeoutUs, maxTimeoutUs);
|
||||
this->timeout = std::chrono::microseconds(timeoutUs);
|
||||
this->maxTimeout = std::chrono::microseconds(maxTimeoutUs);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user