mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
Resolves: NEO-16085, GSD-11678, HSD-14025819208 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
21 lines
600 B
C++
21 lines
600 B
C++
/*
|
|
* Copyright (C) 2024-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/direct_submission/direct_submission_controller.h"
|
|
#include "shared/source/helpers/sleep.h"
|
|
|
|
#include <algorithm>
|
|
#include <chrono>
|
|
namespace NEO {
|
|
bool DirectSubmissionController::sleep(std::unique_lock<std::mutex> &lock) {
|
|
return NEO::waitOnConditionWithPredicate(syncData.condVar, lock, getSleepValue(), [&] { return !pagingFenceRequests.empty(); });
|
|
}
|
|
|
|
void DirectSubmissionController::overrideDirectSubmissionTimeouts(const ProductHelper &productHelper) {
|
|
}
|
|
} // namespace NEO
|