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
3ca608b1
Commit
3ca608b1
authored
Jul 26, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Renamed the NTDLL_get/from_server_timeout functions since they don't deal…
ntdll: Renamed the NTDLL_get/from_server_timeout functions since they don't deal only with timeouts.
parent
ce40ef18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+2
-2
process.c
dlls/ntdll/process.c
+2
-2
sync.c
dlls/ntdll/sync.c
+4
-4
time.c
dlls/ntdll/time.c
+8
-8
No files found.
dlls/ntdll/ntdll_misc.h
View file @
3ca608b1
...
...
@@ -39,8 +39,8 @@ extern void set_cpu_context( const CONTEXT *context );
extern
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
str
);
extern
void
dump_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
ObjectAttributes
);
extern
void
NTDLL_get_server_
timeout
(
abs_time_t
*
when
,
const
LARGE_INTEGER
*
timeout
);
extern
void
NTDLL_from_server_
timeout
(
LARGE_INTEGER
*
timeout
,
const
abs_time_t
*
when
);
extern
void
NTDLL_get_server_
abstime
(
abs_time_t
*
when
,
const
LARGE_INTEGER
*
timeout
);
extern
void
NTDLL_from_server_
abstime
(
LARGE_INTEGER
*
time
,
const
abs_time_t
*
when
);
extern
NTSTATUS
NTDLL_wait_for_multiple_objects
(
UINT
count
,
const
HANDLE
*
handles
,
UINT
flags
,
const
LARGE_INTEGER
*
timeout
,
HANDLE
signal_object
);
...
...
dlls/ntdll/process.c
View file @
3ca608b1
...
...
@@ -236,8 +236,8 @@ NTSTATUS WINAPI NtQueryInformationProcess(
req
->
handle
=
ProcessHandle
;
if
((
ret
=
wine_server_call
(
req
))
==
STATUS_SUCCESS
)
{
NTDLL_from_server_
timeout
(
&
pti
.
CreateTime
,
&
reply
->
start_time
);
NTDLL_from_server_
timeout
(
&
pti
.
ExitTime
,
&
reply
->
end_time
);
NTDLL_from_server_
abstime
(
&
pti
.
CreateTime
,
&
reply
->
start_time
);
NTDLL_from_server_
abstime
(
&
pti
.
ExitTime
,
&
reply
->
end_time
);
}
}
SERVER_END_REQ
;
...
...
dlls/ntdll/sync.c
View file @
3ca608b1
...
...
@@ -484,7 +484,7 @@ NTSTATUS WINAPI NtSetTimer(IN HANDLE handle,
req
->
expire
.
sec
=
0
;
req
->
expire
.
usec
=
0
;
}
else
NTDLL_get_server_
timeout
(
&
req
->
expire
,
when
);
else
NTDLL_get_server_
abstime
(
&
req
->
expire
,
when
);
req
->
handle
=
handle
;
req
->
period
=
period
;
...
...
@@ -564,7 +564,7 @@ NTSTATUS WINAPI NtQueryTimer(
status
=
wine_server_call
(
req
);
/* convert server time to absolute NTDLL time */
NTDLL_from_server_
timeout
(
&
basic_info
->
RemainingTime
,
&
reply
->
when
);
NTDLL_from_server_
abstime
(
&
basic_info
->
RemainingTime
,
&
reply
->
when
);
basic_info
->
TimerState
=
reply
->
signaled
;
}
SERVER_END_REQ
;
...
...
@@ -721,7 +721,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
req
->
flags
=
flags
;
req
->
cookie
=
&
cookie
;
req
->
signal
=
signal_object
;
NTDLL_get_server_
timeout
(
&
req
->
timeout
,
timeout
);
NTDLL_get_server_
abstime
(
&
req
->
timeout
,
timeout
);
wine_server_add_data
(
req
,
handles
,
count
*
sizeof
(
HANDLE
)
);
ret
=
wine_server_call
(
req
);
}
...
...
@@ -819,7 +819,7 @@ NTSTATUS WINAPI NtDelayExecution( BOOLEAN alertable, const LARGE_INTEGER *timeou
{
abs_time_t
when
;
NTDLL_get_server_
timeout
(
&
when
,
timeout
);
NTDLL_get_server_
abstime
(
&
when
,
timeout
);
/* Note that we yield after establishing the desired timeout */
NtYieldExecution
();
...
...
dlls/ntdll/time.c
View file @
3ca608b1
...
...
@@ -435,11 +435,11 @@ static inline int IsLeapYear(int Year)
}
/***********************************************************************
* NTDLL_get_server_
timeout
* NTDLL_get_server_
abstime
*
* Convert a NTDLL time
out into a timeval
struct to send to the server.
* Convert a NTDLL time
into an abs_time_t
struct to send to the server.
*/
void
NTDLL_get_server_
timeout
(
abs_time_t
*
when
,
const
LARGE_INTEGER
*
timeout
)
void
NTDLL_get_server_
abstime
(
abs_time_t
*
when
,
const
LARGE_INTEGER
*
timeout
)
{
UINT
remainder
;
...
...
@@ -484,14 +484,14 @@ void NTDLL_get_server_timeout( abs_time_t *when, const LARGE_INTEGER *timeout )
/***********************************************************************
* NTDLL_from_server_
timeout
* NTDLL_from_server_
abstime
*
* Convert a timeval struct from the server into an NTDLL time
out
.
* Convert a timeval struct from the server into an NTDLL time.
*/
void
NTDLL_from_server_
timeout
(
LARGE_INTEGER
*
timeout
,
const
abs_time_t
*
when
)
void
NTDLL_from_server_
abstime
(
LARGE_INTEGER
*
time
,
const
abs_time_t
*
when
)
{
time
out
->
QuadPart
=
when
->
sec
*
(
ULONGLONG
)
TICKSPERSEC
+
TICKS_1601_TO_1970
;
time
out
->
QuadPart
+=
when
->
usec
*
10
;
time
->
QuadPart
=
when
->
sec
*
(
ULONGLONG
)
TICKSPERSEC
+
TICKS_1601_TO_1970
;
time
->
QuadPart
+=
when
->
usec
*
10
;
}
...
...
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