summaryrefslogtreecommitdiff
path: root/db/os_win32/os_sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/os_win32/os_sleep.c')
-rw-r--r--db/os_win32/os_sleep.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/db/os_win32/os_sleep.c b/db/os_win32/os_sleep.c
index c07198cd0..ae06e4980 100644
--- a/db/os_win32/os_sleep.c
+++ b/db/os_win32/os_sleep.c
@@ -1,23 +1,21 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 1997-2003
+ * Copyright (c) 1997-2004
* Sleepycat Software. All rights reserved.
+ *
+ * $Id: os_sleep.c,v 11.11 2004/03/24 15:13:16 bostic Exp $
*/
#include "db_config.h"
-#ifndef lint
-static const char revid[] = "$Id: os_sleep.c,v 11.9 2003/01/08 05:35:01 bostic Exp $";
-#endif /* not lint */
-
#include "db_int.h"
/*
* __os_sleep --
* Yield the processor for a period of time.
*/
-int
+void
__os_sleep(dbenv, secs, usecs)
DB_ENV *dbenv;
u_long secs, usecs; /* Seconds and microseconds. */
@@ -28,13 +26,14 @@ __os_sleep(dbenv, secs, usecs)
for (; usecs >= 1000000; ++secs, usecs -= 1000000)
;
- if (DB_GLOBAL(j_sleep) != NULL)
- return (DB_GLOBAL(j_sleep)(secs, usecs));
+ if (DB_GLOBAL(j_sleep) != NULL) {
+ DB_GLOBAL(j_sleep)(secs, usecs);
+ return;
+ }
/*
* It's important that we yield the processor here so that other
* processes or threads are permitted to run.
*/
Sleep(secs * 1000 + usecs / 1000);
- return (0);
}