mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168843 - use thread-safe refcounting for shared memory surfaces to avoid shutdown crashes. r=jmuizelaar
This commit is contained in:
parent
b43d654673
commit
a2e0cf32cd
@ -78,7 +78,8 @@ public:
|
||||
SystemProtect(aAddr, aSize, aRights);
|
||||
}
|
||||
|
||||
NS_INLINE_DECL_REFCOUNTING(SharedMemory)
|
||||
// bug 1168843, compositor thread may create shared memory instances that are destroyed by main thread on shutdown, so this must use thread-safe RC to avoid hitting assertion
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SharedMemory)
|
||||
|
||||
static void SystemProtect(char* aAddr, size_t aSize, int aRights);
|
||||
static size_t SystemPageSize();
|
||||
|
@ -35,7 +35,8 @@ class QWindow;
|
||||
class gfxASurface;
|
||||
|
||||
class nsShmImage {
|
||||
NS_INLINE_DECL_REFCOUNTING(nsShmImage)
|
||||
// bug 1168843, compositor thread may create shared memory instances that are destroyed by main thread on shutdown, so this must use thread-safe RC to avoid hitting assertion
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(nsShmImage)
|
||||
|
||||
typedef mozilla::ipc::SharedMemorySysV SharedMemorySysV;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user