diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-27 10:56:12 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-27 11:15:04 +0100 |
| commit | fd3e9f2b9720b9ba730938686b98cff3aa248984 (patch) | |
| tree | 1bb89f1bc27e4dc16552a7dfff255788a1dd88db /executor/executor_windows.h | |
| parent | 34c18f5f43b3b7804b5650b5af67100262557297 (diff) | |
executor: introduce uint64/32/16/8 types
The "define uint64_t unsigned long long" were too good to work.
With a different toolchain I am getting:
cstdint:69:11: error: expected unqualified-id
using ::uint64_t;
^
executor/common.h:34:18: note: expanded from macro 'uint64_t'
Do it the proper way: introduce uint64/32/16/8 types and use them.
pkg/csource then does s/uint64/uint64_t/ to not clutter code with
additional typedefs.
Diffstat (limited to 'executor/executor_windows.h')
| -rw-r--r-- | executor/executor_windows.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/executor_windows.h b/executor/executor_windows.h index 5b788e095..b29095011 100644 --- a/executor/executor_windows.h +++ b/executor/executor_windows.h @@ -56,14 +56,14 @@ bool event_isset(event_t* ev) return res; } -bool event_timedwait(event_t* ev, uint64_t timeout_ms) +bool event_timedwait(event_t* ev, uint64 timeout_ms) { EnterCriticalSection(&ev->cs); - uint64_t start = current_time_ms(); + uint64 start = current_time_ms(); for (;;) { if (ev->state) break; - uint64_t now = current_time_ms(); + uint64 now = current_time_ms(); if (now - start > timeout_ms) break; SleepConditionVariableCS(&ev->cv, &ev->cs, timeout_ms - (now - start)); |
