On 12/06/2012 11:15 PM, [email protected] wrote:
> Hi!
>>>> +  while (aio_error(&aiocb) == EINPROGRESS)
>>>> +          ;
>>>> +
>>>
>>> That creates unnecessary bussy-loop here, I usually add reasonally small
>>> usleep to such loop to avoid that. Something like usleep(10000) would
>>> do.
>>
>> Yeah, that's reasonable, so we have the same problem in almost all of the 
>> cases
>> under aio_read/ and aio_*/
> 
> As usuall, do you care to send a patch or should I look into this issue?

Yeah, let me do it tomorrow morning carefully, I'm sleepy now. ;)

Thanks,
Wanlong Gao

> 


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to