On 12/06/2012 05:30 PM, [email protected] wrote:
> Hi!
>> Signed-off-by: Jan Stancek <[email protected]>
>> ---
>>  .../conformance/interfaces/aio_read/7-1.c          |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git 
>> a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c 
>> b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c
>> index 2d13565..1227db4 100644
>> --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c
>> +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c
>> @@ -70,6 +70,9 @@ int main()
>>              exit(PTS_FAIL);
>>      }
>>  
>> +    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_*/

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