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
e63f4abf
Commit
e63f4abf
authored
Jan 30, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jan 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing casts related to pthread_t. Tweak comments.
parent
8e8518d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pthread.c
scheduler/pthread.c
+6
-5
No files found.
scheduler/pthread.c
View file @
e63f4abf
...
...
@@ -127,7 +127,8 @@ int pthread_create(pthread_t* thread, const pthread_attr_t* attr, void*
idata
->
start_routine
=
start_routine
;
idata
->
arg
=
arg
;
hThread
=
CreateThread
(
NULL
,
0
,
pthread_thread_start
,
idata
,
0
,
thread
);
hThread
=
CreateThread
(
NULL
,
0
,
pthread_thread_start
,
idata
,
0
,
(
LPDWORD
)
thread
);
if
(
hThread
)
CloseHandle
(
hThread
);
...
...
@@ -142,7 +143,7 @@ int pthread_create(pthread_t* thread, const pthread_attr_t* attr, void*
int
pthread_cancel
(
pthread_t
thread
)
{
HANDLE
hThread
=
OpenThread
(
THREAD_ALL_ACCESS
,
FALSE
,
thread
);
HANDLE
hThread
=
OpenThread
(
THREAD_ALL_ACCESS
,
FALSE
,
(
DWORD
)
thread
);
if
(
!
TerminateThread
(
hThread
,
0
))
{
...
...
@@ -157,7 +158,7 @@ int pthread_cancel(pthread_t thread)
int
pthread_join
(
pthread_t
thread
,
void
**
value_ptr
)
{
HANDLE
hThread
=
OpenThread
(
THREAD_ALL_ACCESS
,
FALSE
,
thread
);
HANDLE
hThread
=
OpenThread
(
THREAD_ALL_ACCESS
,
FALSE
,
(
DWORD
)
thread
);
WaitForSingleObject
(
hThread
,
INFINITE
);
if
(
!
GetExitCodeThread
(
hThread
,
(
LPDWORD
)
value_ptr
))
...
...
@@ -660,10 +661,10 @@ int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
return
libc_sigaction
(
signum
,
act
,
oldact
);
}
#else
/* __GLIBC__ */
#else
/* __GLIBC__
|| __FREEBSD__
*/
void
PTHREAD_init_done
(
void
)
{
}
#endif
/* __GLIBC__ */
#endif
/* __GLIBC__
|| __FREEBSD__
*/
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