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
cf4ca4e2
Commit
cf4ca4e2
authored
Oct 12, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the errno functions patching to wine_pthread_init_thread so that
it's done early enough now that kernel is only loaded later on.
parent
88136f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
pthread.c
scheduler/pthread.c
+13
-12
No files found.
scheduler/pthread.c
View file @
cf4ca4e2
...
...
@@ -157,12 +157,6 @@ void wine_pthread_init_process( const struct wine_pthread_functions *functions )
{
memcpy
(
&
funcs
,
functions
,
sizeof
(
funcs
)
);
funcs
.
ptr_set_thread_data
(
&
initial_descr
);
initial_descr
.
cancel_state
=
PTHREAD_CANCEL_ENABLE
;
initial_descr
.
cancel_type
=
PTHREAD_CANCEL_ASYNCHRONOUS
;
writejump
(
"__errno_location"
,
__errno_location
);
writejump
(
"__h_errno_location"
,
__h_errno_location
);
writejump
(
"__res_state"
,
__res_state
);
if
(
libc_uselocale
)
libc_uselocale
(
-
1
/*LC_GLOBAL_LOCALE*/
);
}
...
...
@@ -173,17 +167,24 @@ void wine_pthread_init_process( const struct wine_pthread_functions *functions )
*/
void
wine_pthread_init_thread
(
void
)
{
struct
pthread_descr_struct
*
descr
;
if
(
funcs
.
ptr_set_thread_data
)
{
struct
pthread_descr_struct
*
descr
=
calloc
(
1
,
sizeof
(
*
descr
)
);
descr
=
calloc
(
1
,
sizeof
(
*
descr
)
);
funcs
.
ptr_set_thread_data
(
descr
);
descr
->
cancel_state
=
PTHREAD_CANCEL_ENABLE
;
descr
->
cancel_type
=
PTHREAD_CANCEL_ASYNCHRONOUS
;
if
(
libc_multiple_threads
)
*
libc_multiple_threads
=
1
;
if
(
libc_uselocale
)
libc_uselocale
(
-
1
/*LC_GLOBAL_LOCALE*/
);
}
/* else it's the first thread, init will be done in wine_pthread_init_process */
else
/* first thread */
{
descr
=
&
initial_descr
;
writejump
(
"__errno_location"
,
__errno_location
);
writejump
(
"__h_errno_location"
,
__h_errno_location
);
writejump
(
"__res_state"
,
__res_state
);
}
descr
->
cancel_state
=
PTHREAD_CANCEL_ENABLE
;
descr
->
cancel_type
=
PTHREAD_CANCEL_ASYNCHRONOUS
;
if
(
libc_uselocale
)
libc_uselocale
(
-
1
/*LC_GLOBAL_LOCALE*/
);
}
...
...
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