Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7229) Re: Re: Freeciv commit: ali: Add macro is_
Home

[Freeciv-Dev] Re: (PR#7229) Re: Re: Freeciv commit: ali: Add macro is_

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7229) Re: Re: Freeciv commit: ali: Add macro is_city_hilited().
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Sat, 10 Jan 2004 17:52:09 -0800
Reply-to: rt@xxxxxxxxxxx

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

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7229 >
>
> On Sat, Jan 10, 2004 at 12:52:26PM -0800, Jason Short wrote:
>> > Do you expect a piece of silicon to generate an interrupt precisely
>> > at L1 which may change punit_focus via a GTK timer?
>>
>> This is wrong on many levels.
>>
>> 2.  Freeciv clients are single-threaded, so there will never be an
>> interrupt to change the value at L1.
>
> Don't be sure in this regard. If the (gtk) timer is implemented with
> alarm(2) or similar and not select(2) it isn't single-threaded. Also
> the SDL client uses multiple threads. However I'm not sure here about
> the impact.

In that case large portions of the client need to be rewritten.  In this
case, neither form will work without locking the focus unit first.

jason





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