I am porting a project to glib >= 2.31 and am having some issues with GRecMutex and its reference count. I the project there is code like this which is written for < 2.31:
GStaticRecMutex mutex;
int depth = g_static_rec_mutex_unlock_full (&mutex);
... code ...
g_static_rec_mutex_lock_full (&mutex, depth);
I can change the GStaticRecMutex to a GRecMutex, but glib >= 2.31 there is only g_rec_mutex_unlock(), g_rec_mutex_lock(), and g_rec_mutex_trylock() for GRecMutex and none of them return the reference count (depth). Are there any other functions that I can use to get this information? Can I access it directly?
That means the implementation details can change anytime.
File a bug if you need that function badly, but the question is rather why do you need it?