rpm/db/os_windows/os_yield.c

27 lines
482 B
C
Raw Normal View History

2007-07-16 21:48:14 +08:00
/*-
* See the file LICENSE for redistribution information.
*
2007-07-30 16:58:31 +08:00
* Copyright (c) 1997,2007 Oracle. All rights reserved.
2007-07-16 21:48:14 +08:00
*
2007-07-30 16:58:31 +08:00
* $Id: os_yield.c,v 12.9 2007/05/17 15:15:49 bostic Exp $
2007-07-16 21:48:14 +08:00
*/
#include "db_config.h"
#include "db_int.h"
/*
* __os_yield --
* Yield the processor.
*/
void
__os_yield(dbenv)
DB_ENV *dbenv;
{
/*
* The call to Sleep(0) is specified by MSDN to yield the current
* thread's time slice to another thread of equal or greater priority.
*/
Sleep(0);
}