Function

GLibatomic_ref_count_compare

Declaration [src]

gboolean
g_atomic_ref_count_compare (
  gatomicrefcount* arc,
  gint val
)

Description [src]

Atomically compares the current value of arc with val.

Available since:2.58

Parameters

arc gatomicrefcount*
 

The address of an atomic reference count variable.

 The data is owned by the caller of the function.
val gint
 

The value to compare.

Return value

Returns: gboolean
 

TRUE if the reference count is the same as the given value.