Thread-safe primitive channel

From: <john.aynsley@doulos.com>
Date: Fri Nov 12 2010 - 07:18:02 PST

David, All,

The next topic is making primitive channels thread-safe. Here is the
original proposal:

"Make sc_event::request_update() thread-safe. This would allow safer
interactions between systemc and external software. I don't think this is
very hard to do after looking at the OSCI implementation code. It means
that when processing update requests, we add a provision to ensure that
makes the exchange safe. A Pthread mutex is one approach. To reduce the
performance impact, there can be a special 'request_update_r()' procedure
added for those channels requiring safety. There would still be some
overhead in the kernel to support this, but I believe it can be minimal."

David, could you please pin this down a little?

Comments from anyone else?

Thanks,

John A

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Nov 12 07:18:27 2010

This archive was generated by hypermail 2.1.8 : Fri Nov 12 2010 - 07:18:28 PST