On 03/10/2011 07:06 AM, Paolo Bonzini wrote:
On 03/10/2011 01:59 PM, Corentin Chary wrote:Instead, we now store the data in a temporary buffer, and use a socket pair to notify the main thread that new data is available.You can use a bottom half for this instead of a special socket. Signaling a bottom half is async-signal- and thread-safe.
Bottom halves are thread safe? I don't think so. They probably should be but they aren't today. Regards, Anthony Liguori
Paolo