Nikolay Sivov : rtworkq: Add partial implementation of RtwqLockSharedWorkQueue().

Alexandre Julliard julliard at winehq.org
Thu Feb 6 15:44:16 CST 2020


Module: wine
Branch: master
Commit: 4e3e8f54ae71701296bdf3e137a74fdfbc84546b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4e3e8f54ae71701296bdf3e137a74fdfbc84546b

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Feb  6 10:06:05 2020 +0300

rtworkq: Add partial implementation of RtwqLockSharedWorkQueue().

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rtworkq/queue.c      | 7 +++++++
 dlls/rtworkq/rtworkq.spec | 2 +-
 include/rtworkq.idl       | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/rtworkq/queue.c b/dlls/rtworkq/queue.c
index 13bce0836a..5e9ca51c60 100644
--- a/dlls/rtworkq/queue.c
+++ b/dlls/rtworkq/queue.c
@@ -1092,3 +1092,10 @@ HRESULT WINAPI RtwqSetLongRunning(DWORD queue_id, BOOL enable)
 
     return hr;
 }
+
+HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, DWORD *taskid, DWORD *queue)
+{
+    FIXME("%s, %d, %p, %p.\n", debugstr_w(usageclass), priority, taskid, queue);
+
+    return RtwqAllocateWorkQueue(RTWQ_STANDARD_WORKQUEUE, queue);
+}
diff --git a/dlls/rtworkq/rtworkq.spec b/dlls/rtworkq/rtworkq.spec
index 2d0d3b40e6..c619b3a867 100644
--- a/dlls/rtworkq/rtworkq.spec
+++ b/dlls/rtworkq/rtworkq.spec
@@ -16,7 +16,7 @@
 @ stdcall RtwqInvokeCallback(ptr)
 @ stub RtwqJoinWorkQueue
 @ stdcall RtwqLockPlatform()
-@ stub RtwqLockSharedWorkQueue
+@ stdcall RtwqLockSharedWorkQueue(wstr long ptr ptr)
 @ stdcall RtwqLockWorkQueue(long)
 @ stub RtwqPutMultipleWaitingWorkItem
 @ stdcall RtwqPutWaitingWorkItem(long long ptr ptr)
diff --git a/include/rtworkq.idl b/include/rtworkq.idl
index 6ddb232fbd..b27cce49fd 100644
--- a/include/rtworkq.idl
+++ b/include/rtworkq.idl
@@ -83,6 +83,7 @@ cpp_quote("HRESULT WINAPI RtwqCancelWorkItem(RTWQWORKITEM_KEY key);")
 cpp_quote("HRESULT WINAPI RtwqCreateAsyncResult(IUnknown *object, IRtwqAsyncCallback *callback, IUnknown *state, IRtwqAsyncResult **result);")
 cpp_quote("HRESULT WINAPI RtwqInvokeCallback(IRtwqAsyncResult *result);")
 cpp_quote("HRESULT WINAPI RtwqLockPlatform(void);")
+cpp_quote("HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, DWORD *taskid, DWORD *queue);")
 cpp_quote("HRESULT WINAPI RtwqLockWorkQueue(DWORD queue);")
 cpp_quote("HRESULT WINAPI RtwqPutWaitingWorkItem(HANDLE event, LONG priority, IRtwqAsyncResult *result, RTWQWORKITEM_KEY *key);")
 cpp_quote("HRESULT WINAPI RtwqPutWorkItem(DWORD queue, LONG priority, IRtwqAsyncResult *result);")




More information about the wine-cvs mailing list