2000-11-23 11:11 UTC+0800 Ron Pinkas <ron@profit-master.com>

* source/rtl/idle.c
     ! Added Reset Logic to HB_IDLESTATE()
This commit is contained in:
Ron Pinkas
2000-11-23 19:46:33 +00:00
parent ff0b3c4f59
commit e4f617cd9f
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2000-11-23 11:11 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/rtl/idle.c
! Added Reset Logic to HB_IDLESTATE()
2000-11-23 19:50 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
*source/rdd/dbfcdx/dbfcdx1.h

View File

@@ -168,6 +168,12 @@ void hb_idleShutDown( void )
HB_FUNC( HB_IDLESTATE )
{
hb_idleState();
if( hb_vm_uiIdleTask == hb_vm_uiIdleMaxTask )
{
hb_vm_uiIdleTask = 0;
hb_vm_bCollectGarbage = TRUE;
}
}
/* add a new background task and return its handle */