Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
baeb8c2d
Commit
baeb8c2d
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 RtwqSetLongRunning().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d1897cf9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
queue.c
dlls/rtworkq/queue.c
+21
-0
rtworkq.spec
dlls/rtworkq/rtworkq.spec
+1
-1
rtworkq.idl
include/rtworkq.idl
+1
-0
No files found.
dlls/rtworkq/queue.c
View file @
baeb8c2d
...
...
@@ -1071,3 +1071,24 @@ HRESULT WINAPI RtwqUnlockWorkQueue(DWORD queue)
return
unlock_user_queue
(
queue
);
}
HRESULT
WINAPI
RtwqSetLongRunning
(
DWORD
queue_id
,
BOOL
enable
)
{
struct
queue
*
queue
;
HRESULT
hr
;
int
i
;
TRACE
(
"%#x, %d.
\n
"
,
queue_id
,
enable
);
lock_user_queue
(
queue_id
);
if
(
SUCCEEDED
(
hr
=
grab_queue
(
queue_id
,
&
queue
)))
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
queue
->
envs
);
++
i
)
queue
->
envs
[
i
].
u
.
s
.
LongFunction
=
!!
enable
;
}
unlock_user_queue
(
queue_id
);
return
hr
;
}
dlls/rtworkq/rtworkq.spec
View file @
baeb8c2d
...
...
@@ -27,7 +27,7 @@
@ stdcall RtwqScheduleWorkItem(ptr int64 ptr)
@ stub RtwqSetDeadline
@ stub RtwqSetDeadline2
@ st
ub RtwqSetLongRunning
@ st
dcall RtwqSetLongRunning(long long)
@ stdcall RtwqShutdown()
@ stdcall RtwqStartup()
@ stub RtwqUnjoinWorkQueue
...
...
include/rtworkq.idl
View file @
baeb8c2d
...
...
@@ -88,6 +88,7 @@ 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 RtwqSetLongRunning(DWORD queue_id, BOOL enable);"
)
cpp_quote
(
"HRESULT WINAPI RtwqShutdown(void);"
)
cpp_quote
(
"HRESULT WINAPI RtwqStartup(void);"
)
cpp_quote
(
"HRESULT WINAPI RtwqUnlockPlatform(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