Function

GLibatomic_rc_box_release_full

Declaration

void
g_atomic_rc_box_release_full (
  gpointer mem_block,
  GDestroyNotify clear_func
)

Description

Atomically releases a reference on the data pointed by mem_block.

If the reference was the last one, it will call clear_func to clear the contents of mem_block, and then will free the resources allocated for mem_block.

Available since:2.58

Parameters

mem_block gpointer
 

A pointer to reference counted data.

clear_func GDestroyNotify
 

A function to call when clearing the data.