From fd3e9f2b9720b9ba730938686b98cff3aa248984 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Dec 2017 10:56:12 +0100 Subject: 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. --- executor/executor_posix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'executor/executor_posix.h') diff --git a/executor/executor_posix.h b/executor/executor_posix.h index e9b06b807..3e8b78b3e 100644 --- a/executor/executor_posix.h +++ b/executor/executor_posix.h @@ -61,14 +61,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) { pthread_mutex_lock(&ev->mu); - 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; timespec ts; -- cgit mrf-deployment