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
eea7702e
Commit
eea7702e
authored
Feb 22, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Support thread object type.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2bb4d245
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
om.c
dlls/ntdll/tests/om.c
+3
-0
thread.c
server/thread.c
+9
-1
No files found.
dlls/ntdll/tests/om.c
View file @
eea7702e
...
...
@@ -1563,6 +1563,9 @@ static void test_query_object(void)
test_object_type
(
GetCurrentProcess
(),
"Process"
);
test_no_file_info
(
GetCurrentProcess
()
);
test_object_type
(
GetCurrentThread
(),
"Thread"
);
test_no_file_info
(
GetCurrentThread
()
);
}
static
void
test_type_mismatch
(
void
)
...
...
server/thread.c
View file @
eea7702e
...
...
@@ -128,6 +128,7 @@ static const struct object_ops thread_apc_ops =
/* thread operations */
static
void
dump_thread
(
struct
object
*
obj
,
int
verbose
);
static
struct
object_type
*
thread_get_type
(
struct
object
*
obj
);
static
int
thread_signaled
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
);
static
unsigned
int
thread_map_access
(
struct
object
*
obj
,
unsigned
int
access
);
static
void
thread_poll_event
(
struct
fd
*
fd
,
int
event
);
...
...
@@ -137,7 +138,7 @@ static const struct object_ops thread_ops =
{
sizeof
(
struct
thread
),
/* size */
dump_thread
,
/* dump */
no_get_type
,
/* get_type */
thread_get_type
,
/* get_type */
add_queue
,
/* add_queue */
remove_queue
,
/* remove_queue */
thread_signaled
,
/* signaled */
...
...
@@ -361,6 +362,13 @@ static void dump_thread( struct object *obj, int verbose )
thread
->
id
,
thread
->
unix_pid
,
thread
->
unix_tid
,
thread
->
state
);
}
static
struct
object_type
*
thread_get_type
(
struct
object
*
obj
)
{
static
const
WCHAR
name
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
};
static
const
struct
unicode_str
str
=
{
name
,
sizeof
(
name
)
};
return
get_object_type
(
&
str
);
}
static
int
thread_signaled
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
{
struct
thread
*
mythread
=
(
struct
thread
*
)
obj
;
...
...
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