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
e040e6c4
Commit
e040e6c4
authored
Jun 23, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Added entry for sigprocmask in the pthread functions table.
parent
c6ad0201
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
server.c
dlls/ntdll/server.c
+4
-4
pthread.h
include/wine/pthread.h
+3
-0
kthread.c
loader/kthread.c
+2
-1
pthread.c
loader/pthread.c
+2
-1
No files found.
dlls/ntdll/server.c
View file @
e040e6c4
...
...
@@ -159,7 +159,7 @@ void server_exit_thread( int status )
NtFreeVirtualMemory
(
GetCurrentProcess
(),
&
info
.
teb_base
,
&
size
,
MEM_RELEASE
|
MEM_SYSTEM
);
info
.
teb_size
=
size
;
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
pthread_functions
.
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
close
(
ntdll_get_thread_data
()
->
wait_fd
[
0
]
);
close
(
ntdll_get_thread_data
()
->
wait_fd
[
1
]
);
close
(
ntdll_get_thread_data
()
->
reply_fd
);
...
...
@@ -173,7 +173,7 @@ void server_exit_thread( int status )
*/
void
server_abort_thread
(
int
status
)
{
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
pthread_functions
.
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
NULL
);
close
(
ntdll_get_thread_data
()
->
wait_fd
[
0
]
);
close
(
ntdll_get_thread_data
()
->
wait_fd
[
1
]
);
close
(
ntdll_get_thread_data
()
->
reply_fd
);
...
...
@@ -312,10 +312,10 @@ unsigned int wine_server_call( void *req_ptr )
struct
__server_request_info
*
const
req
=
req_ptr
;
sigset_t
old_set
;
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
&
old_set
);
pthread_functions
.
sigprocmask
(
SIG_BLOCK
,
&
block_set
,
&
old_set
);
send_request
(
req
);
wait_reply
(
req
);
sigprocmask
(
SIG_SETMASK
,
&
old_set
,
NULL
);
pthread_functions
.
sigprocmask
(
SIG_SETMASK
,
&
old_set
,
NULL
);
return
req
->
u
.
reply
.
reply_header
.
error
;
}
...
...
include/wine/pthread.h
View file @
e040e6c4
...
...
@@ -23,6 +23,8 @@
struct
wine_pthread_callbacks
;
#include <signal.h>
#ifdef HAVE_PTHREAD_H
#define _GNU_SOURCE
...
...
@@ -99,6 +101,7 @@ struct wine_pthread_functions
void
(
*
exit_thread
)(
struct
wine_pthread_thread_info
*
info
);
void
(
*
abort_thread
)(
long
status
);
#endif
int
(
*
sigprocmask
)(
int
how
,
const
sigset_t
*
newset
,
sigset_t
*
oldset
);
};
extern
void
wine_pthread_get_functions
(
struct
wine_pthread_functions
*
functions
,
size_t
size
);
...
...
loader/kthread.c
View file @
e040e6c4
...
...
@@ -397,7 +397,8 @@ const struct wine_pthread_functions pthread_functions =
init_current_teb
,
get_current_teb
,
exit_thread
,
abort_thread
abort_thread
,
sigprocmask
};
...
...
loader/pthread.c
View file @
e040e6c4
...
...
@@ -184,7 +184,8 @@ const struct wine_pthread_functions pthread_functions =
init_current_teb
,
get_current_teb
,
exit_thread
,
abort_thread
abort_thread
,
pthread_sigmask
};
#endif
/* HAVE_PTHREAD_H */
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