[cairo] [PATCH V2 0/4] fix replay race condition.

Zhigang Gong zhigang.gong at linux.intel.com
Mon May 28 06:09:21 PDT 2012


This version fixed most of the comments from Uli, including
remove those dead code and use mutex rather than normal lock
to reduce the duplicate code.

For the locking mechanism, this version remove the detction
of "self-copy" in previou version. As before enter the replaying
function, we already did one time flush on the target surface.
Just in case, put a assert there.

As to the dead lock issue on those platform without rwlock
implementation, I still haven't found a good idea. Behdad suggest
to use mutexes to implement rwlock, but I failed to find a way
to do that without introduce at least one extra platform dependent
API, such as thread_self. So I gave it up currently, and leave it
to someone who are interested to add native rwlock implementation
for those platforms.

For the v2 test case, just remove some space errors. any further
comments are welcome.


More information about the cairo mailing list