On Jan 4, 2011, at 7:56 PM, nathan binkert wrote: > Interesting. If you were going to do this, why do you need accessors at all? > This seems to mean that I shouldn't have created the whole EventManager > thing and had schedule be a per-object thing. TLS scares me, but maybe > that's unnecessarily. :) How were you planning on having thread 1 schedule > an event on thread 2's eventq? Were you going to use some sort of FIFO > between threads? One per eventq with a lock only on the producer side, or > one lock-free per pair of threads? (I assume the former. I have code > somewhere for the latter that I wrote a long time ago.) Further assuming > that the FIFO is a yes, how were you going to check it? Polling it > periodically? Seems that this could all be rolled into the whole async > wrapper around the event queue.
Just to dive in for a moment here. TLS doesn't scare me. I've looked at a lot of ways to do the same thing and TLS is so much cleaner than the alternative getspecific/setspecific. Ali
_______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
