[Freeciv-Dev] Re: (PR#3391) SDL client polls the network
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Raimar Falke wrote:
> On Wed, Feb 12, 2003 at 11:22:24AM +0100, Rafa? Bursig wrote:
>>Some time before Bob Pendelton fight with this problem and he
>>creatae thread based event code (see:
>>http://gameprogrammer.com/game.html )
>
>
> Bob is a lot wiser than the SDL people by using a condition
> variable. If you have condition variables and can use threads (and
> both are AFAIK part of SDL) these are superior to polling. His FE
> (fast events) looks a lot like classical select. Select here takes the
> role of SDL_CondWait.
If SDL implements the condition variable, then it's possible it uses
polling too. In that case there wouldn't be any advantage.
At some point, though, you have to put trust in the library authors.
Either that, or rewrite/fix the library...
jason
|
|