diff options
author | Ryan Lortie <desrt@desrt.ca> | 2011-09-30 14:22:04 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-10-02 20:04:03 -0400 |
commit | 8e43470c3827f5980f39bf9da0bc510858daf2be (patch) | |
tree | b21013a6f6ebc8874ddd12a1ae132c890ddc2dec /glib/gthreadprivate.h | |
parent | 7a75f56aa16ac13607a13f4e455a4fa4248ff750 (diff) | |
download | glib-8e43470c3827f5980f39bf9da0bc510858daf2be.tar.gz |
Stop dithering over GPrivate
Take out the half-private g_private_init() stuff and replace it with a
G_PRIVATE_INIT macro that allows specifying a GDestroyNotify.
Expose the GPrivate structure in a public header.
Add a g_private_replace() to (sort of) match the functionality of
g_static_mutex_set().
Improve the documentation.
Deprecate g_private_new().
Diffstat (limited to 'glib/gthreadprivate.h')
-rw-r--r-- | glib/gthreadprivate.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h index c924efa57..d4c814fb4 100644 --- a/glib/gthreadprivate.h +++ b/glib/gthreadprivate.h @@ -56,20 +56,6 @@ void g_thread_init_glib (void); /* initializers that may also use g_private_new() */ G_GNUC_INTERNAL void _g_messages_thread_init_nomessage (void); -struct _GPrivate -{ - gpointer single_value; - gboolean ready; -#ifdef G_OS_WIN32 - gint index; -#else - pthread_key_t key; -#endif -}; - -G_GNUC_INTERNAL void g_private_init (GPrivate *key, - GDestroyNotify notify); - #ifdef G_OS_WIN32 G_GNUC_INTERNAL void g_thread_DllMain (void); #endif |