2020-03-30 12:00:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
*/
|
2020-08-14 16:58:22 +00:00
|
|
|
// An OS-independent sleep function.
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-08-14 16:58:22 +00:00
|
|
|
#ifndef SYSTEM_WRAPPERS_INCLUDE_SLEEP_H_
|
|
|
|
#define SYSTEM_WRAPPERS_INCLUDE_SLEEP_H_
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-08-14 16:58:22 +00:00
|
|
|
namespace webrtc {
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-08-14 16:58:22 +00:00
|
|
|
// This function sleeps for the specified number of milliseconds.
|
|
|
|
// It may return early if the thread is woken by some other event,
|
|
|
|
// such as the delivery of a signal on Unix.
|
|
|
|
void SleepMs(int msecs);
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-08-14 16:58:22 +00:00
|
|
|
} // namespace webrtc
|
2020-03-30 12:00:09 +00:00
|
|
|
|
2020-08-14 16:58:22 +00:00
|
|
|
#endif // SYSTEM_WRAPPERS_INCLUDE_SLEEP_H_
|