xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_IdleWaitNoCPU()

Toggles the mode for CPU usage in Idle wait states.

Syntax

HB_IdleWaitNoCPU( [<lNewMode>] ) --> lOldMode

Arguments

<lNewMode>
This is a logical value determining the mode how a wait state is executed in idle tasks.

Return

The function returns the previous mode for wait states as a logical value.

Description

By default, an idle wait state is accomplished by an internal function that monitors a time interval. This requires CPU resources. When <lNewMode> is set to .T. (true), a wait state is supervised by the operating system, which requires no extra CPU resources.

Info

See also:HB_BackGroundAdd(), HB_IdleAdd(), HB_IdleState(), HB_IdleSleepMSec()
Category: Background processing , xHarbour extensions
Source:rtl\idle.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe