Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
407252f1
Commit
407252f1
authored
Jul 18, 2018
by
Loo Rong Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comment and use std::numeric_limits<Dword>::max()
parent
44976eb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
absl/synchronization/internal/kernel_timeout.h
+2
-2
No files found.
absl/synchronization/internal/kernel_timeout.h
View file @
407252f1
...
@@ -116,10 +116,10 @@ class KernelTimeout {
...
@@ -116,10 +116,10 @@ class KernelTimeout {
// in the case of a spurious wakeup).
// in the case of a spurious wakeup).
// This header file may be included transitively by public header files,
// This header file may be included transitively by public header files,
// so we define our own DWORD and INFINITE instead of getting them from
// so we define our own DWORD and INFINITE instead of getting them from
// <intsafe.h>.
// <intsafe.h>
and <WinBase.h>
.
typedef
unsigned
long
DWord
;
typedef
unsigned
long
DWord
;
DWord
InMillisecondsFromNow
()
const
{
DWord
InMillisecondsFromNow
()
const
{
constexpr
DWord
kInfinite
=
st
atic_cast
<
DWord
>
(
-
1
);
constexpr
DWord
kInfinite
=
st
d
::
numeric_limits
<
DWord
>::
max
(
);
if
(
!
has_timeout
())
{
if
(
!
has_timeout
())
{
return
kInfinite
;
return
kInfinite
;
}
}
...
...
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