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
731bffa0
Commit
731bffa0
authored
Jun 14, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10: Add ID3DX10ThreadPump:GetWorkItemCount implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
6ae162fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
async.c
dlls/d3dx10_43/async.c
+16
-2
No files found.
dlls/d3dx10_43/async.c
View file @
731bffa0
...
...
@@ -636,6 +636,8 @@ struct thread_pump
ID3DX10ThreadPump
ID3DX10ThreadPump_iface
;
LONG
refcount
;
LONG
processing_count
;
SRWLOCK
io_lock
;
CONDITION_VARIABLE
io_cv
;
unsigned
int
io_count
;
...
...
@@ -758,6 +760,7 @@ static HRESULT WINAPI thread_pump_AddWorkItem(ID3DX10ThreadPump *iface, ID3DX10D
if
(
object
)
*
object
=
NULL
;
InterlockedIncrement
(
&
thread_pump
->
processing_count
);
AcquireSRWLockExclusive
(
&
thread_pump
->
io_lock
);
++
thread_pump
->
io_count
;
list_add_tail
(
&
thread_pump
->
io_queue
,
&
work_item
->
entry
);
...
...
@@ -768,8 +771,15 @@ static HRESULT WINAPI thread_pump_AddWorkItem(ID3DX10ThreadPump *iface, ID3DX10D
static
UINT
WINAPI
thread_pump_GetWorkItemCount
(
ID3DX10ThreadPump
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
return
0
;
struct
thread_pump
*
thread_pump
=
impl_from_ID3DX10ThreadPump
(
iface
);
UINT
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
AcquireSRWLockExclusive
(
&
thread_pump
->
device_lock
);
ret
=
thread_pump
->
processing_count
+
thread_pump
->
device_count
;
ReleaseSRWLockExclusive
(
&
thread_pump
->
device_lock
);
return
ret
;
}
static
HRESULT
WINAPI
thread_pump_WaitForAllItems
(
ID3DX10ThreadPump
*
iface
)
...
...
@@ -842,6 +852,7 @@ static DWORD WINAPI io_thread(void *arg)
if
(
work_item
->
result
)
*
work_item
->
result
=
hr
;
work_item_free
(
work_item
,
FALSE
);
InterlockedDecrement
(
&
thread_pump
->
processing_count
);
continue
;
}
...
...
@@ -894,6 +905,7 @@ static DWORD WINAPI proc_thread(void *arg)
if
(
work_item
->
result
)
*
work_item
->
result
=
hr
;
work_item_free
(
work_item
,
FALSE
);
InterlockedDecrement
(
&
thread_pump
->
processing_count
);
continue
;
}
...
...
@@ -908,6 +920,7 @@ static DWORD WINAPI proc_thread(void *arg)
if
(
work_item
->
result
)
*
work_item
->
result
=
hr
;
work_item_free
(
work_item
,
FALSE
);
InterlockedDecrement
(
&
thread_pump
->
processing_count
);
continue
;
}
...
...
@@ -921,6 +934,7 @@ static DWORD WINAPI proc_thread(void *arg)
list_add_tail
(
&
thread_pump
->
device_queue
,
&
work_item
->
entry
);
++
thread_pump
->
device_count
;
InterlockedDecrement
(
&
thread_pump
->
processing_count
);
ReleaseSRWLockExclusive
(
&
thread_pump
->
device_lock
);
}
return
0
;
...
...
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