[Freeciv-Dev] Re: (PR#13351) Meta-ticket: AI and threads
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] Re: (PR#13351) Meta-ticket: AI and threads |
From: |
"Per I. Mathisen" <per@xxxxxxxxxxx> |
Date: |
Tue, 28 Jun 2005 09:38:19 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13351 >
On Tue, 28 Jun 2005, Marko Lindqvist wrote:
> AI -thread is possible to make more gradually than AI -process. First
> protect huge blocks of code by mutexes and then make protected portions
> smaller andsmaller. Of course, first versions would have no advantage
> over single thread model but only thread overhead. Only one thread is
> actually executing as other is waiting for mutex.
Good point.
> What about portability? How difficult it is write thread
> implementation that works in linux/unix/windows/mac/...
Glib, SDL and APR (Apache Portable Runtime - http://apr.apache.org/) all
have portable thread support. APR has the advantage of lots of
network-related stuff we could use, while SDL is already used by all
clients for sound, and Glib is already used by GTK client. Both APR and
Glib could be used to outsorce some utility/ functions to an external
library. I think APR and SDL are smaller and more portable than Glib, and
both are present on many systems already.
But this is really a blue sky item anyway...
- Per
|
|