Re: Question about glib hashtable



Thanks for info.

Actually, I have been using the glib 1.2 version and
the API reference for that did not mention anything
about this so I clarified.

Thanks,

Ankur

--- Sven Neumann <sven gimp org> wrote:

> Hi,
> 
> Ankur Jain <ankur12us yahoo com> writes:
> 
> > If I am making a call of the form:
> >
> > g_hash_table_foreach(
> > hash_table_ptr, my_func, user_data)
> >
> >
> > Is it safe to modify the hash table referenced by
> > "hash_table_ptr" (e.g. add/remove entries and then
> > free the removed keys & values) from inside the
> > "my_func" function.
> 
> This is explicitely mentioned in the API docs:
> 
> 
>
http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-Tables.html#g-hash-table-foreach
> 
> 
> Sven
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]