File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,8 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
107107}
108108
109109SetThreadPriorityResult 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
You can’t perform that action at this time.
0 commit comments