Version française
Home     About     Download     Resources     Contact us    
Browse thread
LablGTK app maxes out CPU
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <matt@g...>
Subject: Re: [Caml-list] LablGTK app maxes out CPU
malc wrote:

>> A 'sleep' call might help, but the standard Unix.sleep only accepts 
>> 1-second increments, which is undesirable. But I can try a wrapper for 
>> usleep() ... unless someone has a better idea.
> 
> Disregarding the fact that one should go for a "real" solution,
> Unix.select [] [] [] subsecond_timeout is a "portable" way to
> do this.

Well, that's clever! Thanks for the kludge :-)

-- 
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language :     matt.gushee.net/rascl/ :