Function Macro

GLibatomic_rc_box_new

Declaration

#define g_atomic_rc_box_new (
  type
)

Description

A convenience macro to allocate atomically reference counted data with the size of the given type.

This macro calls g_atomic_rc_box_alloc() with sizeof (type) and casts the returned pointer to a pointer of the given type, avoiding a type cast in the source code.

Available since:2.58

Parameters

type none
 

The type to allocate, typically a structure name.