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
a74dc1a1
Commit
a74dc1a1
authored
Jan 30, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use the monotonic time counter also on the server side.
parent
a8df9b14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
Makefile.in
server/Makefile.in
+3
-3
request.c
server/request.c
+17
-0
No files found.
server/Makefile.in
View file @
a74dc1a1
DEFS
=
-D__WINESRC__
EXTRALIBS
=
@LIBPOLL@
EXTRALIBS
=
@LIBPOLL@
@LIBRT@
C_SRCS
=
\
async.c
\
...
...
@@ -62,10 +62,10 @@ all: $(PROGRAMS)
@MAKE_RULES@
wineserver
:
$(OBJS)
$(CC)
-o
$@
$(OBJS)
$(LIBWINE)
$(LIBPORT)
$(LDFLAGS)
$(LIBS)
$(LDRPATH_LOCAL)
$(CC)
-o
$@
$(OBJS)
$(LIBWINE)
$(LIBPORT)
$(LDFLAGS)
$(
EXTRALIBS)
$(
LIBS)
$(LDRPATH_LOCAL)
wineserver-installed
:
$(OBJS)
$(CC)
-o
$@
$(OBJS)
$(LIBWINE)
$(LIBPORT)
$(LDFLAGS)
$(LIBS)
$(LDRPATH_INSTALL)
$(CC)
-o
$@
$(OBJS)
$(LIBWINE)
$(LIBPORT)
$(LDFLAGS)
$(
EXTRALIBS)
$(
LIBS)
$(LDRPATH_INSTALL)
install install-lib
::
wineserver-installed $(DESTDIR)$(bindir) install-man-pages
$(INSTALL_PROGRAM)
wineserver-installed
$(DESTDIR)$(bindir)
/wineserver
...
...
server/request.c
View file @
a74dc1a1
...
...
@@ -51,6 +51,9 @@
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
#ifdef __APPLE__
# include <mach/mach_time.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
...
...
@@ -486,6 +489,20 @@ int send_client_fd( struct process *process, int fd, obj_handle_t handle )
/* get current tick count to return to client */
unsigned
int
get_tick_count
(
void
)
{
#ifdef HAVE_CLOCK_GETTIME
struct
timespec
ts
;
#ifdef CLOCK_MONOTONIC_RAW
if
(
!
clock_gettime
(
CLOCK_MONOTONIC_RAW
,
&
ts
))
return
ts
.
tv_sec
*
1000
+
ts
.
tv_nsec
/
1000000
;
#endif
if
(
!
clock_gettime
(
CLOCK_MONOTONIC
,
&
ts
))
return
ts
.
tv_sec
*
1000
+
ts
.
tv_nsec
/
1000000
;
#elif defined(__APPLE__)
static
mach_timebase_info_data_t
timebase
;
if
(
!
timebase
.
denom
)
mach_timebase_info
(
&
timebase
);
return
mach_absolute_time
()
*
timebase
.
numer
/
timebase
.
denom
/
1000000
;
#endif
return
(
current_time
-
server_start_time
)
/
10000
;
}
...
...
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