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
8cb932ea
Commit
8cb932ea
authored
Oct 01, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implemented AmILastThread information class for NtQueryInformationThread.
parent
6a0568a1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
2 deletions
+23
-2
thread.c
dlls/ntdll/thread.c
+17
-1
server_protocol.h
include/wine/server_protocol.h
+2
-1
protocol.def
server/protocol.def
+1
-0
thread.c
server/thread.c
+1
-0
trace.c
server/trace.c
+2
-0
No files found.
dlls/ntdll/thread.c
View file @
8cb932ea
...
...
@@ -1167,6 +1167,23 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
#endif
return
status
;
}
case
ThreadAmILastThread
:
{
SERVER_START_REQ
(
get_thread_info
)
{
req
->
handle
=
handle
;
req
->
tid_in
=
0
;
status
=
wine_server_call
(
req
);
if
(
status
==
STATUS_SUCCESS
)
{
BOOLEAN
last
=
reply
->
last
;
if
(
data
)
memcpy
(
data
,
&
last
,
min
(
length
,
sizeof
(
last
)
));
if
(
ret_len
)
*
ret_len
=
min
(
length
,
sizeof
(
last
)
);
}
}
SERVER_END_REQ
;
return
status
;
}
case
ThreadPriority
:
case
ThreadBasePriority
:
case
ThreadAffinityMask
:
...
...
@@ -1176,7 +1193,6 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
case
ThreadQuerySetWin32StartAddress
:
case
ThreadZeroTlsCell
:
case
ThreadPerformanceCount
:
case
ThreadAmILastThread
:
case
ThreadIdealProcessor
:
case
ThreadPriorityBoost
:
case
ThreadSetTlsArrayAddress
:
...
...
include/wine/server_protocol.h
View file @
8cb932ea
...
...
@@ -388,6 +388,7 @@ struct get_thread_info_reply
int
affinity
;
abs_time_t
creation_time
;
abs_time_t
exit_time
;
int
last
;
};
...
...
@@ -4405,6 +4406,6 @@ union generic_reply
struct
query_symlink_reply
query_symlink_reply
;
};
#define SERVER_PROTOCOL_VERSION 24
6
#define SERVER_PROTOCOL_VERSION 24
7
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
8cb932ea
...
...
@@ -347,6 +347,7 @@ struct token_groups
int affinity; /* thread affinity mask */
abs_time_t creation_time; /* thread creation time */
abs_time_t exit_time; /* thread exit time */
int last; /* last thread in process */
@END
...
...
server/thread.c
View file @
8cb932ea
...
...
@@ -952,6 +952,7 @@ DECL_HANDLER(get_thread_info)
reply
->
creation_time
.
usec
=
thread
->
creation_time
.
tv_usec
;
reply
->
exit_time
.
sec
=
thread
->
exit_time
.
tv_sec
;
reply
->
exit_time
.
usec
=
thread
->
exit_time
.
tv_usec
;
reply
->
last
=
thread
->
process
->
running_threads
==
1
;
release_object
(
thread
);
}
...
...
server/trace.c
View file @
8cb932ea
...
...
@@ -772,6 +772,8 @@ static void dump_get_thread_info_reply( const struct get_thread_info_reply *req
fprintf
(
stderr
,
","
);
fprintf
(
stderr
,
" exit_time="
);
dump_abs_time
(
&
req
->
exit_time
);
fprintf
(
stderr
,
","
);
fprintf
(
stderr
,
" last=%d"
,
req
->
last
);
}
static
void
dump_set_thread_info_request
(
const
struct
set_thread_info_request
*
req
)
...
...
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