Lines Matching refs:array
93 GPtrArray *array;
187 retval->array = g_ptr_array_new ();
198 if (cond->array->len > 0)
200 SetEvent (g_ptr_array_index (cond->array, 0));
201 g_ptr_array_remove_index (cond->array, 0);
213 for (i = 0; i < cond->array->len; i++)
214 SetEvent (g_ptr_array_index (cond->array, i));
216 g_ptr_array_set_size (cond->array, 0);
239 g_ptr_array_add (cond->array, event);
252 g_ptr_array_remove (cond->array, event);
267 /* Now event must not be inside the array, check this */
268 g_assert (g_ptr_array_remove (cond->array, event) == FALSE);
318 g_ptr_array_free (cond->array, TRUE);
352 gpointer* array = TlsGetValue (g_private_tls);
358 if (!array)
360 array = (gpointer*) calloc (G_PRIVATE_MAX, sizeof (gpointer));
361 TlsSetValue (g_private_tls, array);
364 array[index] = value;
370 gpointer* array = TlsGetValue (g_private_tls);
373 if (index >= G_PRIVATE_MAX || !array)
376 return array[index];
419 gpointer *array = TlsGetValue (g_private_tls);
426 if (array)
435 GDestroyNotify data = array[i];
440 array[i] = NULL;
447 free (array);