1
0
Fork 0
Commit graph

19 commits

Author SHA1 Message Date
curt
b0b6c34249 Initial stab at a threaded tile loader contributed by Bernie Bright.
He writes:

Here are the final changes to add threads to the tile loading.  All the
thread related code is in the new FGTileLoader class.

./configure.in
./acconfig.h
Added --with-threads option and corresponding ENABLE_THREADS
definition.  The default is no threads.

./src/Scenery/tilemgr
Removed load_queue and associated references.  This has been replaced by
a new class FGTileLoader in FGNewCache.
Made the global variable global_tile_cache a member.
schedule_needed(): removed global_tile_cache.exists() tests since
sched_tile() effectively repeats the test.
initialize_queue(): removed code that loads tiles since this is now
performed by FGTileLoader.
update(): ditto

./src/Scenery/newcache
Added new class FGTileLoader to manage tile queuing and loading.
tile_map typedefs are private.
exists() is a const member function.
fill_in(): deleted
load_tile(): added.

./src/Scenery/FGTileLoader
The new threaded tile loader.  Maintains a queue of tiles waiting to be
loaded and an array of one or more threads to load the tiles.  Currently
only a single thread is created.  The queue is guarded by a mutex to
synchronize access.  A condition variable signals the thread when the
queue is non-empty.

CLO: I made a few tweaks to address a couple issues, hopefully what we
have is solid, but now we kick it out to the general public to see. :-)
2001-04-11 02:47:15 +00:00
curt
15150da8d2 Changed PLIB_IS_BROKEN define to a more benign sounded PLIB_1_2_X. 2001-03-14 23:35:11 +00:00
curt
55e881b83d Attempt to detect and work around plib-1.2.0 audio bugs. 2001-03-09 20:17:54 +00:00
curt
2d206ebdcf Moved VERSION to FLIGHTGEAR_VERSION and put it in it's own include file. 2000-10-11 00:19:10 +00:00
curt
c493080163 Updates to search for mk4.h rather than gdbm.h 2000-06-20 04:47:40 +00:00
curt
39f4bea43e Fixes for cygwin32 builds. 2000-04-27 03:26:36 +00:00
curt
b23d8f9938 A few remaining reorg changes. 2000-02-17 23:34:30 +00:00
curt
715062e85f Fixed (hopefully) a build problem with newer versions of automake
and autoconf.
1999-10-30 02:37:56 +00:00
curt
eddea671a2 Upgraded to latest weather data base code from Christian Mayer's and make
it the default.
1999-10-14 20:30:54 +00:00
curt
8d1be9f893 Added support for timegm() which returns time_t and explicitely expects GMT
input.
1999-09-03 00:24:30 +00:00
curt
e945d2b761 Christian's new weather subsystem is causing problems with some compilers
so I am allowing it to be #ifdef'd out until the compile problems can be
resolved.
1999-08-12 17:13:44 +00:00
curt
b67e68b684 FreeBSD tweaks. 1999-06-28 18:19:26 +00:00
curt
aea253a85c Updated build system to remove DEFS += -DFOO type lines. This doesn't seem
to be supported in recent versions of autoconf.
1999-06-24 20:38:31 +00:00
curt
540849b9c3 Incorporated Oliver's initial networking code. 1999-06-22 21:24:31 +00:00
curt
b9ae1d92d1 Working on separating GPC. 1999-01-27 04:45:01 +00:00
curt
43a2086ca6 MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr> 1999-01-19 20:56:46 +00:00
curt
35b96f914e Enable release builds using the --without-logging option to the configure
script.  Also a couple log message cleanups, plus some C to C++ comment
conversion.
1998-11-07 19:06:59 +00:00
curt
1c7cf373ac Changes by Bernie Bright to add getrusage() check. 1998-08-19 17:24:21 +00:00
curt
81b4477349 Initial revision. 1998-07-30 23:58:04 +00:00