Lines Matching refs:pool
897 GParamSpecPool *pool = g_new (GParamSpecPool, 1); in g_param_spec_pool_new() local
899 memcpy (&pool->smutex, &init_smutex, sizeof (init_smutex)); in g_param_spec_pool_new()
900 pool->type_prefixing = type_prefixing != FALSE; in g_param_spec_pool_new()
901 pool->hash_table = g_hash_table_new (param_spec_pool_hash, param_spec_pool_equals); in g_param_spec_pool_new()
903 return pool; in g_param_spec_pool_new()
915 g_param_spec_pool_insert (GParamSpecPool *pool, in g_param_spec_pool_insert() argument
921 if (pool && pspec && owner_type > 0 && pspec->owner_type == 0) in g_param_spec_pool_insert()
923 G_SLOCK (&pool->smutex); in g_param_spec_pool_insert()
929 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_insert()
936 g_hash_table_insert (pool->hash_table, pspec, pspec); in g_param_spec_pool_insert()
937 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_insert()
941 g_return_if_fail (pool != NULL); in g_param_spec_pool_insert()
956 g_param_spec_pool_remove (GParamSpecPool *pool, in g_param_spec_pool_remove() argument
959 if (pool && pspec) in g_param_spec_pool_remove()
961 G_SLOCK (&pool->smutex); in g_param_spec_pool_remove()
962 if (g_hash_table_remove (pool->hash_table, pspec)) in g_param_spec_pool_remove()
966 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_remove()
970 g_return_if_fail (pool != NULL); in g_param_spec_pool_remove()
1037 g_param_spec_pool_lookup (GParamSpecPool *pool, in g_param_spec_pool_lookup() argument
1045 if (!pool || !param_name) in g_param_spec_pool_lookup()
1047 g_return_val_if_fail (pool != NULL, NULL); in g_param_spec_pool_lookup()
1051 G_SLOCK (&pool->smutex); in g_param_spec_pool_lookup()
1053 delim = pool->type_prefixing ? strchr (param_name, ':') : NULL; in g_param_spec_pool_lookup()
1058 pspec = param_spec_ht_lookup (pool->hash_table, param_name, owner_type, walk_ancestors); in g_param_spec_pool_lookup()
1059 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_lookup()
1065 if (pool->type_prefixing && delim[1] == ':') in g_param_spec_pool_lookup()
1081 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_lookup()
1087 pspec = param_spec_ht_lookup (pool->hash_table, param_name, owner_type, walk_ancestors); in g_param_spec_pool_lookup()
1088 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_lookup()
1095 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_lookup()
1125 g_param_spec_pool_list_owned (GParamSpecPool *pool, in g_param_spec_pool_list_owned() argument
1130 g_return_val_if_fail (pool != NULL, NULL); in g_param_spec_pool_list_owned()
1133 G_SLOCK (&pool->smutex); in g_param_spec_pool_list_owned()
1136 g_hash_table_foreach (pool->hash_table, pool_list, &data); in g_param_spec_pool_list_owned()
1137 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_list_owned()
1260 g_param_spec_pool_list (GParamSpecPool *pool, in g_param_spec_pool_list() argument
1269 g_return_val_if_fail (pool != NULL, NULL); in g_param_spec_pool_list()
1273 G_SLOCK (&pool->smutex); in g_param_spec_pool_list()
1280 g_hash_table_foreach (pool->hash_table, in g_param_spec_pool_list()
1287 …slists[i] = pspec_list_remove_overridden_and_redirected (slists[i], pool->hash_table, owner_type, … in g_param_spec_pool_list()
1299 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_list()