[fpc-pascal] Suspending app
Michael Van Canneyt
michael at freepascal.org
Tue Jun 21 20:52:02 CEST 2005
On Tue, 21 Jun 2005, Darius Blaszijk wrote:
> I have an app that checks several files continuously and when the fileage
> has changed the app performs some instructions. I have put the checks in a
> loop. The drawback is that the processor is now 100% loaded. I could use the
> FindFirstChangeNotification API on windows. But is there a crossplatform
Not yet, although work is being done on that.
Try using a sleep() call. It will suspend the app for a number of milliseconds.
More information about the fpc-pascal