Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] MFC&GTK client
Home

Re: [Freeciv-Dev] MFC&GTK client

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv developers mailing list <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] MFC&GTK client
From: Andy Black <ablack@xxxxxxxxxxxxxx>
Date: Mon, 16 Aug 1999 18:42:23 -0600

At 12:00 PM +0200 8/16/99, Falk Hueffner wrote:
>Andy Black <ablack@xxxxxxxxxxxxxx> writes:
>
>> First, In the subroutine put_nuke_mushroom_pixmaps in gui-gtk/mapview.c
>> in part:
>>   gdk_flush ();
>>   sleep(1);
>>
>>   update_map_canvas(map_canvas_adjust_x(abs_x0-1),
>>
>> Is the call to sleep() intended to be a call to myusleep?
>> If it is, that typo should be fixed.
>
>Well, 1 µs is a bit few I think ;) The author likely relied on the
>target to be at least Posix conform, which isn't the case anymore.
>
>> On the mac client, I think the difference is the myusleep gives other
>> programs procesor time, and sleep doesn't.
>
>It seems ridiculous to me to have a sleep that does not give CPU time
>to other processes... are you sure?

Well, That was my interpritation of the #define in Opentransport.h
sequence: sleep is #defined to OTsleep, OTSleep repeatedly calls OTIdle,
OTIdle does nothing.

Andy



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