qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 6/7] Exit loop if we have been there too long


From: Wei-Ren Chen
Subject: Re: [Qemu-devel] [PATCH 6/7] Exit loop if we have been there too long
Date: Fri, 22 Jun 2012 10:42:04 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

> >> +        if ((i & 63) == 0) {
> >> +            uint64_t t1 = (qemu_get_clock_ns(rt_clock) - bwidth) / 
> >> 1000000;
> >> +            if (t1 > 50) { /* 50ms, half buffered_file limit */
> > can't we use a constant ?
> 
> 50 is a constant already, no?  Or what do you mean.

  I guess Orit means,

#define THRESHOLD 50

if (t1 > THRESHOLD) { ... }

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]