Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6816) Re: Re: (PR#6819) server crashes when loaded
Home

[Freeciv-Dev] Re: (PR#6816) Re: Re: (PR#6819) server crashes when loaded

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ggracian@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6816) Re: Re: (PR#6819) server crashes when loaded trireme is lost
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 10 Nov 2003 23:09:05 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6816 >

On Mon, 10 Nov 2003, Jason Short wrote:
> Another alternative is to change genlists so that they are all safe
> (i.e., calling ***_list_remove within a ***_list_iterate is safe). The
> proposed method is that when _remove is called it doesn't actually free
> the entry from the array, but instead marks it for deletion. The actual
> deletion occurrs later - the most transparent way is to do it when the
> top-level ***_iterate call is exited or when this element is encountered
> in a top-level ***_iterate finds it. (Note that iterators may be
> nested, which complicates the problem. But it is easy for the iterator
> to track its own nesting.) I suspect a patch for this isn't too hard;
> I'll look into it.

Both I and Vasco have already made such patches. Give me a little time,
and I'll send you an updated version.

  - Per




[Prev in Thread] Current Thread [Next in Thread]