Re: Array foreach in scripting languages

"Richard Fabian" <[email protected]> Sun, 13 Aug 2006 21:38:54 +0100
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
On 8/13/06, Carsten Orthbandt <[email protected]> wrote:
>
> I'm afraid I wasn't clear. The actual data structure of the list
> or array may be anything. In the case at hand, it is not a linked
> list.


for the sake of one word difference ;)
"but you could always attach the iterators to the linked list on iterator
construction."
"but you could always attach the iterators to a linked list on iterator
construction."
hehe

The linked list I was referring to would be a linked list
> of all iterators attached to a specific array instance specifically
> for adjusting the iterators on list changes. So yes, that's what
> I was about to do.


yes, this is what we do.


Modifying arrays poses some serious challenges for multi-threaded
> operation anyway, I don't think it's getting much harder with this
> iterator scheme in place. I was planning to do heavy multi-threading
> through thread pools and task lists that operate in higher level
> chunks as to not spend to much time on the threading itself.


My impression of working multi-threaded has been that we have to stop
hoping, and start proactivley ensuring.
I agree with Mat Noguchi, we should really dissallow the modification of any
containers contents while we are iterating them. We used to do it this way
in our scheduler, and may return to it once we start fulltime development on
the next gen platforms.

-- 
fabs();

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555