Skip to content

Commit

Permalink
crt: remove WaitOnAddress/WakeByAddressXXX from kernel32
Browse files Browse the repository at this point in the history
It may have been there in the past but on my current Windows 10 it's not there
anymore.

They do exist in api-ms-win-core-synch-l1-2-*.dll

This contradicts the official documentation:
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddressall
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddresssingle

The proper way to use them is to link with synchronization.lib as the doc says.

Signed-off-by: Liu Hao <lh_mouse@126.com>
  • Loading branch information
robUx4 authored and lhmouse committed Jun 5, 2020
1 parent 4f9a809 commit 68d0e7d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mingw-w64-crt/lib-common/kernel32.def.in
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,14 @@ WaitForThreadpoolWaitCallbacks
WaitForThreadpoolWorkCallbacks
WaitNamedPipeA
WaitNamedPipeW
WaitOnAddress
WakeAllConditionVariable
WakeByAddressSingle
WakeByAddressAll
; MSDN says it's in Kernel32.dll but it's not.
; Link with libsynchronization.a instead.
; Commented out for compatibility with older
; versions of Windows.
;WaitOnAddress
;WakeByAddressSingle
;WakeByAddressAll
WakeConditionVariable
WerGetFlags
WerGetFlagsWorker
Expand Down

0 comments on commit 68d0e7d

Please sign in to comment.