[PATCH 2/4] X event queue mutex

Keith Packard keithp at keithp.com
Mon Oct 6 21:40:39 PDT 2008


On Tue, 2008-10-07 at 00:45 -0300, Tiago Vignatti wrote:

> The following patch assert the order of events enqueued with a mutex 
> protecting writes to the tail pointer in mieqEnqueue. If the main thread 
> blocks somehow, the input thread continues doing its job. All 
> mieqEnqueue users must be safe now.

That looks fine to me, except that our coding style doesn't allow
statements and declarations to be interleaved.

> I really don't know how to check if a CPU is visible to the other CPU.

The question is whether writes to memory from one CPU will be visible to
another CPU.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20081006/97aae244/attachment.pgp>


More information about the xorg mailing list