mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Advise against using GPrivate
GStaticPrivate is really a lot better in almost every way.
This commit is contained in:
parent
706b275116
commit
79b8057928
@ -682,6 +682,10 @@ GThreadFunctions g_thread_functions_for_glib_use = {
|
|||||||
/**
|
/**
|
||||||
* GPrivate:
|
* GPrivate:
|
||||||
*
|
*
|
||||||
|
* <note><para>
|
||||||
|
* #GStaticPrivate is a better choice for most uses.
|
||||||
|
* </para></note>
|
||||||
|
*
|
||||||
* The #GPrivate struct is an opaque data structure to represent a
|
* The #GPrivate struct is an opaque data structure to represent a
|
||||||
* thread private data key. Threads can thereby obtain and set a
|
* thread private data key. Threads can thereby obtain and set a
|
||||||
* pointer which is private to the current thread. Take our
|
* pointer which is private to the current thread. Take our
|
||||||
@ -741,6 +745,10 @@ GThreadFunctions g_thread_functions_for_glib_use = {
|
|||||||
* non-%NULL, the destructor is called with this pointer as the
|
* non-%NULL, the destructor is called with this pointer as the
|
||||||
* argument.
|
* argument.
|
||||||
*
|
*
|
||||||
|
* <note><para>
|
||||||
|
* #GStaticPrivate is a better choice for most uses.
|
||||||
|
* </para></note>
|
||||||
|
*
|
||||||
* <note><para>@destructor is used quite differently from @notify in
|
* <note><para>@destructor is used quite differently from @notify in
|
||||||
* g_static_private_set().</para></note>
|
* g_static_private_set().</para></note>
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user