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
8101a2fa
Commit
8101a2fa
authored
Aug 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move the abort_thread() function to the CPU-specific files to allow redefining it.
parent
28e34588
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
9 deletions
+36
-9
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
signal_i386.c
dlls/ntdll/signal_i386.c
+8
-0
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+8
-0
signal_sparc.c
dlls/ntdll/signal_sparc.c
+8
-0
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+7
-0
thread.c
dlls/ntdll/thread.c
+4
-9
No files found.
dlls/ntdll/ntdll_misc.h
View file @
8101a2fa
...
...
@@ -79,6 +79,7 @@ extern size_t server_init_thread( void *entry_point );
extern
void
DECLSPEC_NORETURN
server_protocol_error
(
const
char
*
err
,
...
);
extern
void
DECLSPEC_NORETURN
server_protocol_perror
(
const
char
*
err
);
extern
void
DECLSPEC_NORETURN
abort_thread
(
int
status
);
extern
void
DECLSPEC_NORETURN
terminate_thread
(
int
status
);
extern
void
DECLSPEC_NORETURN
exit_thread
(
int
status
);
extern
sigset_t
server_block_set
;
extern
void
server_enter_uninterrupted_section
(
RTL_CRITICAL_SECTION
*
cs
,
sigset_t
*
sigset
);
...
...
dlls/ntdll/signal_i386.c
View file @
8101a2fa
...
...
@@ -2321,6 +2321,14 @@ void WINAPI RtlExitUserThread( ULONG status )
exit_thread
(
status
);
}
/***********************************************************************
* abort_thread
*/
void
abort_thread
(
int
status
)
{
terminate_thread
(
status
);
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
...
...
dlls/ntdll/signal_powerpc.c
View file @
8101a2fa
...
...
@@ -1111,6 +1111,14 @@ void WINAPI RtlExitUserThread( ULONG status )
exit_thread
(
status
);
}
/***********************************************************************
* abort_thread
*/
void
abort_thread
(
int
status
)
{
terminate_thread
(
status
);
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
...
...
dlls/ntdll/signal_sparc.c
View file @
8101a2fa
...
...
@@ -853,6 +853,14 @@ void WINAPI RtlExitUserThread( ULONG status )
exit_thread
(
status
);
}
/***********************************************************************
* abort_thread
*/
void
abort_thread
(
int
status
)
{
terminate_thread
(
status
);
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/
...
...
dlls/ntdll/signal_x86_64.c
View file @
8101a2fa
...
...
@@ -2578,6 +2578,13 @@ void WINAPI RtlExitUserThread( ULONG status )
exit_thread
(
status
);
}
/***********************************************************************
* abort_thread
*/
void
abort_thread
(
int
status
)
{
terminate_thread
(
status
);
}
/**********************************************************************
* __wine_enter_vm86 (NTDLL.@)
...
...
dlls/ntdll/thread.c
View file @
8101a2fa
...
...
@@ -364,9 +364,9 @@ HANDLE thread_init(void)
/***********************************************************************
*
abort
_thread
*
terminate
_thread
*/
void
abort
_thread
(
int
status
)
void
terminate
_thread
(
int
status
)
{
pthread_sigmask
(
SIG_BLOCK
,
&
server_block_set
,
NULL
);
if
(
interlocked_xchg_add
(
&
nb_threads
,
-
1
)
<=
1
)
_exit
(
status
);
...
...
@@ -698,7 +698,7 @@ NTSTATUS WINAPI NtAlertThread( HANDLE handle )
NTSTATUS
WINAPI
NtTerminateThread
(
HANDLE
handle
,
LONG
exit_code
)
{
NTSTATUS
ret
;
BOOL
self
,
last
;
BOOL
self
;
SERVER_START_REQ
(
terminate_thread
)
{
...
...
@@ -706,15 +706,10 @@ NTSTATUS WINAPI NtTerminateThread( HANDLE handle, LONG exit_code )
req
->
exit_code
=
exit_code
;
ret
=
wine_server_call
(
req
);
self
=
!
ret
&&
reply
->
self
;
last
=
reply
->
last
;
}
SERVER_END_REQ
;
if
(
self
)
{
if
(
last
)
_exit
(
exit_code
);
else
abort_thread
(
exit_code
);
}
if
(
self
)
abort_thread
(
exit_code
);
return
ret
;
}
...
...
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