[cairo] [PATCH V3 0/4] fix replay race condition.
zhigang.gong at linux.intel.com
zhigang.gong at linux.intel.com
Wed Jul 11 02:06:11 PDT 2012
From: Zhigang Gong <zhigang.gong at linux.intel.com>
Rebase the patchset to latest git master. Ping to comments.
Thx.
---
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