Re: [Gems-users] Ruby-Opal interface


Date: Fri, 16 Sep 2005 09:58:02 -0700
From: Gilles Pokam <gpokam@xxxxxxxxxxx>
Subject: Re: [Gems-users] Ruby-Opal interface
Gilles Pokam wrote:


Thanks for replying. Now I think I catch how it works. So, in case you have a miss in Ruby, the pseq set the value of m_fetch_status to PSEQ_FETCH_ICACHEMISS. Meanwhile, the request has been issued to the L1 cache controller via the issueRequest function in Ruby, right ? At completion, either one of write/read Callback function is invoked, which in turn invokes the hitCallback and the Complete function in rubycache ? This is where the wakeup function of the pseq is invoked, changing the fetch status to ready, right ?


Still one more question. In rubycache.h, there is this comment stating that if the event queue NULL, the scheduler relies on the caller to poll the 'm_is_scheduled' variable to detect when 'Wakeup() should be called. Can you describe me an example of how I can make use of it ?

Thanks.

--
Gilles

[← Prev in Thread] Current Thread [Next in Thread→]