diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-07-17 16:21:05 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-07-17 17:01:51 +0100 |
commit | 4d5cfa41aad626e6e47590b3d1286742c8bb4abb (patch) | |
tree | d60dbcca69d76ce12725aaa7af12a48d500c760e /specs | |
parent | 2b7f2a846b866773d56761d57c10c545570f1abc (diff) |
dxgiretrace: More tweaks to IDXGIKeyedMutex.
They do have side-effects.
Diffstat (limited to 'specs')
-rw-r--r-- | specs/dxgi.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/specs/dxgi.py b/specs/dxgi.py index d2d6583f..7349e25a 100644 --- a/specs/dxgi.py +++ b/specs/dxgi.py @@ -171,6 +171,9 @@ HRESULT = MAKE_HRESULT([ "DXGI_ERROR_NOT_CURRENTLY_AVAILABLE", "DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED", "DXGI_ERROR_REMOTE_OUTOFMEMORY", + # IDXGIKeyedMutex::AcquireSync + "WAIT_ABANDONED", + "WAIT_TIMEOUT", ]) @@ -379,9 +382,13 @@ IDXGIResource.methods += [ StdMethod(HRESULT, "GetEvictionPriority", [Out(Pointer(DXGI_RESOURCE_PRIORITY), "pEvictionPriority")], sideeffects=False), ] +DWORD_TIMEOUT = FakeEnum(DWORD, [ + "INFINITE", +]) + IDXGIKeyedMutex.methods += [ - StdMethod(HRESULT, "AcquireSync", [(UINT64, "Key"), (DWORD, "dwMilliseconds")], sideeffects=False), - StdMethod(HRESULT, "ReleaseSync", [(UINT64, "Key")], sideeffects=False), + StdMethod(HRESULT, "AcquireSync", [(UINT64, "Key"), (DWORD_TIMEOUT, "dwMilliseconds")]), + StdMethod(HRESULT, "ReleaseSync", [(UINT64, "Key")]), ] DXGI_MAP = Flags(UINT, [ |