Private.replace

Sets the thread local variable @key to have the value @value in the current thread.

This function differs from g_private_set() in the following way: if the previous value was non-%NULL then the #GDestroyNotify handler for @key is run on it.

class Private
void
replace
(
void* value
)

Parameters

value void*

the new value

Meta

Since

2.32