Quantcast

Grunt::Record_IO

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Grunt::Record_IO

Victor Liu
In the IOGrunt.cpp file under Grunt::Record_IO:

       

        // If there are any REQUEST I/Os remaining for this transfer
        // deduct the completed I/O from the REQUEST counter.
        if ( transaction->remaining_requests > 0 )
        {
                if ( ! --(transaction->remaining_requests) )
                {
                        // If this was the last REQUEST, start replies
                        transaction->is_read = !transaction->is_read;
                }
        }


Why does the is_read negated if there are no more REQUESTS?
And how does that start the repiles?
Would my program break if i took out that line "transaction->is_read =
!transaction->is_read;"


Thanks
--
Victor Liu


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Iometer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/iometer-devel
Loading...