Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace dxvk {
namespace dxvk::this_thread {

bool isInModuleDetachment() {
using PFN_RtlDllShutdownInProgress = BOOLEAN (WINAPI *)();
using PFN_RtlDllShutdownInProgress = BOOLEAN (NTAPI *)();

static auto RtlDllShutdownInProgress = reinterpret_cast<PFN_RtlDllShutdownInProgress>(
::GetProcAddress(::GetModuleHandleW(L"ntdll.dll"), "RtlDllShutdownInProgress"));
Expand Down
6 changes: 3 additions & 3 deletions src/util/util_sleep.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ namespace dxvk {
#ifdef _WIN32
// On Windows, we use NtDelayExecution which has units of 100ns.
using TimerDuration = std::chrono::duration<int64_t, std::ratio<1, 10000000>>;
using NtQueryTimerResolutionProc = UINT (WINAPI *) (ULONG*, ULONG*, ULONG*);
using NtSetTimerResolutionProc = UINT (WINAPI *) (ULONG, BOOL, ULONG*);
using NtDelayExecutionProc = UINT (WINAPI *) (BOOL, LARGE_INTEGER*);
using NtQueryTimerResolutionProc = LONG (NTAPI *) (ULONG*, ULONG*, ULONG*);
using NtSetTimerResolutionProc = LONG (NTAPI *) (ULONG, BOOLEAN, ULONG*);
using NtDelayExecutionProc = LONG (NTAPI *) (BOOLEAN, LARGE_INTEGER*);
NtDelayExecutionProc NtDelayExecution = nullptr;
#else
// On other platforms, we use the std library, which calls through to nanosleep -- which is ns.
Expand Down