hb_idleState()

Evaluates a single background task and calls the garbage collector.

Syntax

void hb_idleState( void );

Arguments

None

Returns

Nothing

Description

hb_idleState() requests the garbage collecting and executes a single background task defined by the codeblock code passed with HB_IDLEADD() function. It also releases the CPU time slices for platforms that require it.

Every call for this function evaluates different task in the order of tasks creation. There is no arguments passed during a codeblock evaluation.

This function can be safely called even if there are no background tasks defined.

This function is automatically called from INKEY() function.

Status

Harbour

Platforms

All

Files

source/rtl/idle.c

See Also