thread: hide g_static_rec_mutex_get_rec_mutex_impl

Unlike with GStaticMutex, this function was never part of the pre-2.32
ABI, so we should keep it tucked in.
This commit is contained in:
Ryan Lortie 2011-10-12 18:27:06 -04:00
parent 1f34ef4117
commit b7f0506371
2 changed files with 4 additions and 4 deletions

View File

@ -637,7 +637,7 @@ g_static_rec_mutex_init (GStaticRecMutex *mutex)
*mutex = init_mutex;
}
GRecMutex *
static GRecMutex *
g_static_rec_mutex_get_rec_mutex_impl (GStaticRecMutex* mutex)
{
GRecMutex *result;

View File

@ -1317,14 +1317,14 @@ filename_charset_cache_free (gpointer data)
gboolean
g_get_filename_charsets (const gchar ***filename_charsets)
{
static GStaticPrivate cache_private = G_STATIC_PRIVATE_INIT;
GFilenameCharsetCache *cache = g_static_private_get (&cache_private);
static GPrivate cache_private = G_PRIVATE_INIT (filename_charset_cache_free);
GFilenameCharsetCache *cache = g_private_get (&cache_private);
const gchar *charset;
if (!cache)
{
cache = g_new0 (GFilenameCharsetCache, 1);
g_static_private_set (&cache_private, cache, filename_charset_cache_free);
g_private_set (&cache_private, cache);
}
g_get_charset (&charset);