blob: 6108a476f53e3baa5d1683ebd936f1c8830d8061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009 WiredTiger Software.
* All rights reserved.
*
* $Id$
*/
#include "wt_internal.h"
/*
* __wt_sleep --
* Pause the thread of control.
*/
void
__wt_sleep(long seconds, long micro_seconds)
{
struct timeval t;
t.tv_sec = (long)seconds + micro_seconds / 1000000;
t.tv_usec = (long)micro_seconds % 1000000;
(void)select(0, NULL, NULL, NULL, &t);
}
|