Skip to content

Commit 00e16ce

Browse files
committed
clang-format
1 parent 5c586bf commit 00e16ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Support/Windows/Threading.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
107107
}
108108

109109
SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
110-
111-
// SetThreadInformation is only available on Windows 8 and later. Since we still
112-
// support compilation on Windows 7, we load the function dynamically.
110+
// SetThreadInformation is only available on Windows 8 and later. Since we
111+
// still support compilation on Windows 7, we load the function dynamically.
113112
typedef BOOL(WINAPI * SetThreadInformation_t)(
114113
HANDLE hThread, THREAD_INFORMATION_CLASS ThreadInformationClass,
115114
_In_reads_bytes_(ThreadInformationSize) PVOID ThreadInformation,
@@ -132,8 +131,9 @@ SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
132131
// efficent cores at the most efficient cpu frequency):
133132
// https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setthreadinformation
134133
// https://learn.microsoft.com/en-us/windows/win32/procthread/quality-of-service
135-
setThreadInformation(Priority == ThreadPriority::Background ? THREAD_POWER_THROTTLING_EXECUTION_SPEED
136-
: 0);
134+
setThreadInformation(Priority == ThreadPriority::Background
135+
? THREAD_POWER_THROTTLING_EXECUTION_SPEED
136+
: 0);
137137
}
138138

139139
// https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-setthreadpriority

0 commit comments

Comments
 (0)