MCPcopy Create free account
hub / github.com/XpuOS/xsched / Synchronize

Method Synchronize

platforms/levelzero/hal/src/ze_command.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void ZeListExecuteCommand::Synchronize()
14{
15 XASSERT(following_fence_ != nullptr,
16 "following_fence_ is nullptr, EnableSynchronization() should be called first");
17 std::unique_lock<std::mutex> lock(fence_mtx_);
18 if (fence_signaled_) return;
19 ZE_ASSERT(Driver::FenceHostSynchronize(following_fence_, UINT64_MAX));
20 fence_signaled_ = true;
21}
22
23bool ZeListExecuteCommand::Synchronizable()
24{

Callers

nothing calls this directly

Calls 1

WaitUntilMethod · 0.80

Tested by

no test coverage detected