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
c19fef41
Commit
c19fef41
authored
Nov 18, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed strict aliasing issue in __pthread_once and SetWaitableTimer.
parent
a9fecb90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
pthread.c
scheduler/pthread.c
+2
-1
timer.c
scheduler/timer.c
+5
-1
No files found.
scheduler/pthread.c
View file @
c19fef41
...
...
@@ -198,8 +198,9 @@ int pthread_attr_setschedparam(pthread_attr_t *attr,
int
__pthread_once
(
pthread_once_t
*
once_control
,
void
(
*
init_routine
)(
void
))
{
static
pthread_once_t
the_once
=
PTHREAD_ONCE_INIT
;
LONG
once_now
=
*
(
LONG
*
)
&
the_once
;
LONG
once_now
;
memcpy
(
&
once_now
,
&
the_once
,
sizeof
(
once_now
));
if
(
InterlockedCompareExchange
((
LONG
*
)
once_control
,
once_now
+
1
,
once_now
)
==
once_now
)
(
*
init_routine
)();
return
0
;
...
...
scheduler/timer.c
View file @
c19fef41
...
...
@@ -147,7 +147,11 @@ BOOL WINAPI SetWaitableTimer( HANDLE handle, const LARGE_INTEGER *when, LONG per
else
{
DWORD
remainder
;
req
->
sec
=
DOSFS_FileTimeToUnixTime
(
(
FILETIME
*
)
&
exp
,
&
remainder
);
FILETIME
ft
;
ft
.
dwLowDateTime
=
exp
.
s
.
LowPart
;
ft
.
dwHighDateTime
=
exp
.
s
.
HighPart
;
req
->
sec
=
DOSFS_FileTimeToUnixTime
(
&
ft
,
&
remainder
);
req
->
usec
=
remainder
/
10
;
/* convert from 100-ns to us units */
}
req
->
handle
=
handle
;
...
...
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