GNOME Bugzilla – Bug 711753
gthread-posix: Don't use gslice allocated GRecMutex
Last modified: 2013-11-26 19:35:37 UTC
Unlike the other threading primitives GRecMutex is defined in gslice allocated memory. This is awkward because gslice takes locks as well, albeit not a GRecMutex. Was discovered during implementation of GCleanup and prevents us from doing orderly cleanup. That is, first we want to cleanup gslice, and then cleanup the threading primitives after that.
Created attachment 259361 [details] [review] gthread-posix: Don't use gslice allocated GRecMutex This leads to problems during cleanup, and seems strange to have locks defined in terms of things that need locking.
Comment on attachment 259361 [details] [review] gthread-posix: Don't use gslice allocated GRecMutex I'm pretty sure this is right, but maybe Ryan should confirm that this was an oversight, not something intentional
Ryan, any word on this ?
Review of attachment 259361 [details] [review]: I think I did it this way because recursive mutexes don't get used, in turn, from GSlice. Consistency here is nice though, so go ahead.
Attachment 259361 [details] pushed as c9cfa7d - gthread-posix: Don't use gslice allocated GRecMutex