From 20c2b3e98a39b8b18355c6940cabf496cb4bb46d Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Fri, 9 May 2003 21:20:58 +0000 Subject: [PATCH] See ChangeLog entry 2003-05-09 17:20 UTC-0400 David G. Holm --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/idle.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b2cc81b726..a02ec2b660 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2003-05-09 17:20 UTC-0400 David G. Holm + * source/rtl/idle.c + + Added a PRG-callable function wrapper for hb_releaseCPU() and + named it HB_RELEASECPU. + 2003-05-09 14:40 UTC-0400 David G. Holm * source/rdd/dbcmd.c ! Fixed the FIELDPOS function to truncate long field names, diff --git a/harbour/source/rtl/idle.c b/harbour/source/rtl/idle.c index d77633b1ab..4e622efc57 100644 --- a/harbour/source/rtl/idle.c +++ b/harbour/source/rtl/idle.c @@ -292,3 +292,9 @@ HB_FUNC( HB_IDLEDEL ) if( !bFound ) hb_ret(); /* return NIL */ } + +/* Release a CPU time slice */ +HB_FUNC( HB_RELEASECPU ) +{ + hb_releaseCPU(); +}