Private.replace

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

This function differs from 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