Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9f27848d
Commit
9f27848d
authored
Feb 06, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtworkq: Add deadline management stubs.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e3e8f54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
queue.c
dlls/rtworkq/queue.c
+21
-0
rtworkq.spec
dlls/rtworkq/rtworkq.spec
+3
-3
rtworkq.idl
include/rtworkq.idl
+3
-0
No files found.
dlls/rtworkq/queue.c
View file @
9f27848d
...
...
@@ -1099,3 +1099,24 @@ HRESULT WINAPI RtwqLockSharedWorkQueue(const WCHAR *usageclass, LONG priority, D
return
RtwqAllocateWorkQueue
(
RTWQ_STANDARD_WORKQUEUE
,
queue
);
}
HRESULT
WINAPI
RtwqSetDeadline
(
DWORD
queue_id
,
LONGLONG
deadline
,
HANDLE
*
request
)
{
FIXME
(
"%#x, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
request
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqSetDeadline2
(
DWORD
queue_id
,
LONGLONG
deadline
,
LONGLONG
predeadline
,
HANDLE
*
request
)
{
FIXME
(
"%#x, %s, %s, %p.
\n
"
,
queue_id
,
wine_dbgstr_longlong
(
deadline
),
wine_dbgstr_longlong
(
predeadline
),
request
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
RtwqCancelDeadline
(
HANDLE
request
)
{
FIXME
(
"%p.
\n
"
,
request
);
return
E_NOTIMPL
;
}
dlls/rtworkq/rtworkq.spec
View file @
9f27848d
...
...
@@ -3,7 +3,7 @@
@ stdcall RtwqAllocateWorkQueue(long ptr)
@ stub RtwqBeginRegisterWorkQueueWithMMCSS
@ stub RtwqBeginUnregisterWorkQueueWithMMCSS
@ st
ub RtwqCancelDeadline
@ st
dcall RtwqCancelDeadline(long)
@ stub RtwqCancelMultipleWaitingWorkItem
@ stdcall RtwqCancelWorkItem(int64)
@ stdcall RtwqCreateAsyncResult(ptr ptr ptr ptr)
...
...
@@ -25,8 +25,8 @@
@ stub RtwqRegisterPlatformWithMMCSS
@ stdcall RtwqRemovePeriodicCallback(long)
@ stdcall RtwqScheduleWorkItem(ptr int64 ptr)
@ st
ub RtwqSetDeadline
@ st
ub RtwqSetDeadline2
@ st
dcall RtwqSetDeadline(long int64 ptr)
@ st
dcall RtwqSetDeadline2(long int64 int64 ptr)
@ stdcall RtwqSetLongRunning(long long)
@ stdcall RtwqShutdown()
@ stdcall RtwqStartup()
...
...
include/rtworkq.idl
View file @
9f27848d
...
...
@@ -79,6 +79,7 @@ cpp_quote("typedef void (WINAPI *RTWQPERIODICCALLBACK)(IUnknown *context);")
cpp_quote
(
"HRESULT WINAPI RtwqAddPeriodicCallback(RTWQPERIODICCALLBACK callback, IUnknown *context, DWORD *key);"
)
cpp_quote
(
"HRESULT WINAPI RtwqAllocateWorkQueue(RTWQ_WORKQUEUE_TYPE queue_type, DWORD *queue);"
)
cpp_quote
(
"HRESULT WINAPI RtwqCancelDeadline(HANDLE request);"
)
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);"
)
...
...
@@ -89,6 +90,8 @@ cpp_quote("HRESULT WINAPI RtwqPutWaitingWorkItem(HANDLE event, LONG priority, IR
cpp_quote
(
"HRESULT WINAPI RtwqPutWorkItem(DWORD queue, LONG priority, IRtwqAsyncResult *result);"
)
cpp_quote
(
"HRESULT WINAPI RtwqRemovePeriodicCallback(DWORD key);"
)
cpp_quote
(
"HRESULT WINAPI RtwqScheduleWorkItem(IRtwqAsyncResult *result, INT64 timeout, RTWQWORKITEM_KEY *key);"
)
cpp_quote
(
"HRESULT WINAPI RtwqSetDeadline(DWORD queue_id, LONGLONG deadline, HANDLE *request);"
)
cpp_quote
(
"HRESULT WINAPI RtwqSetDeadline2(DWORD queue_id, LONGLONG deadline, LONGLONG predeadline, HANDLE *request);"
)
cpp_quote
(
"HRESULT WINAPI RtwqSetLongRunning(DWORD queue_id, BOOL enable);"
)
cpp_quote
(
"HRESULT WINAPI RtwqShutdown(void);"
)
cpp_quote
(
"HRESULT WINAPI RtwqStartup(void);"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment