1a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin/* 2a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * 4a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * Use of this source code is governed by a BSD-style license 5a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * that can be found in the LICENSE file in the root of the source 6a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * tree. An additional intellectual property rights grant can be found 7a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * in the file PATENTS. All contributing project authors may 8a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin * be found in the AUTHORS file in the root of the source tree. 9a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin */ 10a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin// An OS-independent sleep function. 11a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin 12a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_ 13a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_ 14a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin 15a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkinnamespace webrtc { 16a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin 17a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin// This function sleeps for the specified number of milliseconds. 18a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin// It may return early if the thread is woken by some other event, 19a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin// such as the delivery of a signal on Unix. 20a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkinvoid SleepMs(int msecs); 21a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin 22a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin} // namespace webrtc 23a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin 24a6451827d543eb00824bc95097e47d0aac51ae93Alexander Gutkin#endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_ 25