Re: [Vala] Is ArrayList.iterator reentrant?
- From: JM <interflug1 gmx net>
- To: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Is ArrayList.iterator reentrant?
- Date: Tue, 12 Apr 2011 14:02:05 +0200
The stamp thing is just a mechanism to track changes on the List or it's
Iterator while iterating.
On construction the Iterator takes the stamp from the list (just an
integer number). If the List or Iterator are changed while iteration the
stamps are incremented and therefore differ from each other.
That means that after a change of Iterator or List you have to restart
the iteration.
Regards
Am Dienstag, den 12.04.2011, 17:00 +0800 schrieb Nor Jaidi Tuah:
Is ArrayList.iterator reentrant?
The reason I asked is that I got this
assertion error:
ERROR:arraylist.c:741:gee_array_list_iterator_real_next: assertion
failed: (self->priv->_stamp == self->priv->_list->priv->_stamp)
Is this a gee bug, or my improper use?
hand
Nor Jaidi Tuah
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]