Skip to content

Commit

Permalink
Missing synchapi.h CONDITION_, INIT_, SRWLOCK_ constants. Fixed #1788.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed Jan 19, 2024
1 parent 3892ab9 commit 3049fa3
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
7 changes: 6 additions & 1 deletion generation/WinSDK/ConstantsScraper.settings.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -608,4 +608,9 @@ WOW64_CONTEXT_EXCEPTION_ACTIVE
WOW64_CONTEXT_SERVICE_ACTIVE
WOW64_CONTEXT_EXCEPTION_REQUEST
WOW64_CONTEXT_EXCEPTION_REPORTING
HOTKEYF_EXT
HOTKEYF_EXT
RTL_CONDITION_VARIABLE_LOCKMODE_SHARED
RTL_RUN_ONCE_CHECK_ONLY
RTL_RUN_ONCE_ASYNC
RTL_RUN_ONCE_INIT_FAILED
RTL_RUN_ONCE_CTX_RESERVED_BITS
15 changes: 15 additions & 0 deletions generation/WinSDK/manual/Threading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ public static unsafe partial class Apis
public const uint WAIT_ABANDONED_0 = 0x00000080;
public const uint WAIT_IO_COMPLETION = 0x000000C0;

public const uint CONDITION_VARIABLE_LOCKMODE_SHARED = 0x1;
public const uint INIT_ONCE_CHECK_ONLY = 0x00000001;
public const uint INIT_ONCE_ASYNC = 0x00000002;
public const uint INIT_ONCE_INIT_FAILED = 0x00000004;
public const uint INIT_ONCE_CTX_RESERVED_BITS = 2;

[Constant("0")]
public static CONDITION_VARIABLE CONDITION_VARIABLE_INIT;

[Constant("0")]
public static SRWLOCK SRWLOCK_INIT;

[Constant("0")]
public static INIT_ONCE INIT_ONCE_STATIC_INIT;

[DllImport("FORCEINLINE")]
[Constant("-4")]
[return: DoNotRelease]
Expand Down
7 changes: 7 additions & 0 deletions generation/WinSDK/requiredNamespacesForNames.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,13 @@ REASON_CONTEXT=Windows.Win32.System.Threading
REPARSE_GUID_DATA_BUFFER=Windows.Win32.Storage.FileSystem
RESUME_PERFORMANCE=Windows.Win32.System.Power
RTL_CORRELATION_*=Windows.Win32.System.CorrelationVector
RTL_CRITICAL_SECTION_ALL_FLAG_BITS=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_FLAG_RESOURCE_TYPE=Windows.Win32.System.Threading
RTL_CRITICAL_SECTION_FLAG_STATIC_INIT=Windows.Win32.System.Threading
RtlAddFunctionTable=Windows.Win32.System.Diagnostics.Debug
RtlAddGrowableFunctionTable=Windows.Win32.System.Diagnostics.Debug
RtlCaptureContext=Windows.Win32.System.Diagnostics.Debug
Expand Down
16 changes: 16 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Fixed #1788.
Windows.Win32.System.SystemServices.Apis.RTL_CONDITION_VARIABLE_LOCKMODE_SHARED removed
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_ALL_FLAG_BITS => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_ALL_FLAG_BITS
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_FLAG_RESOURCE_TYPE => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_FLAG_RESOURCE_TYPE
Windows.Win32.System.SystemServices.Apis.RTL_CRITICAL_SECTION_FLAG_STATIC_INIT => Windows.Win32.System.Threading.Apis.RTL_CRITICAL_SECTION_FLAG_STATIC_INIT
Windows.Win32.System.SystemServices.Apis.RTL_RUN_ONCE_ASYNC removed
Windows.Win32.System.SystemServices.Apis.RTL_RUN_ONCE_CHECK_ONLY removed
Windows.Win32.System.SystemServices.Apis.RTL_RUN_ONCE_CTX_RESERVED_BITS removed
Windows.Win32.System.SystemServices.Apis.RTL_RUN_ONCE_INIT_FAILED removed
Windows.Win32.System.Threading.Apis.CONDITION_VARIABLE_INIT added
Windows.Win32.System.Threading.Apis.INIT_ONCE_STATIC_INIT added
Windows.Win32.System.Threading.Apis.SRWLOCK_INIT added

0 comments on commit 3049fa3

Please sign in to comment.