From 23ac13b285864ebfd720324b24fb974e1b186341 Mon Sep 17 00:00:00 2001 From: homuler Date: Sun, 24 Jan 2021 12:05:05 +0900 Subject: [PATCH] use absl::SleepFor instead of usleep --- mediapipe/util/tracking/box_tracker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/util/tracking/box_tracker.cc b/mediapipe/util/tracking/box_tracker.cc index 2111eac4b..7c5cd2b94 100644 --- a/mediapipe/util/tracking/box_tracker.cc +++ b/mediapipe/util/tracking/box_tracker.cc @@ -667,7 +667,7 @@ bool BoxTracker::WaitForChunkFile(int id, int checkpoint, } } - usleep(wait_time_msec * 1000); + absl::SleepFor(absl::Milliseconds(wait_time_msec)); total_wait_msec += wait_time_msec; struct stat tmp;