1
0
Fork 0
flightgear/src/Objects
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
..
colours.h source tree reorganization prior to flightgear 0.7 2009-09-14 14:26:20 +02:00
Makefile.am builddir -> srcdir so builds can be done outside the master source directory. 2000-09-20 23:27:25 +00:00
matlib.cxx Initial stab at a threaded tile loader contributed by Bernie Bright. 2001-04-11 02:47:15 +00:00
matlib.hxx FG_ to SG_ namespace changes. 2001-03-23 22:59:18 +00:00
newmat.cxx Initial stab at a threaded tile loader contributed by Bernie Bright. 2001-04-11 02:47:15 +00:00
newmat.hxx Initial stab at a threaded tile loader contributed by Bernie Bright. 2001-04-11 02:47:15 +00:00
obj.cxx Updates from Bernie Bright to massage tile loading around to make it 2001-03-29 01:42:31 +00:00
obj.hxx Updates from Bernie Bright to massage tile loading around to make it 2001-03-29 01:42:31 +00:00
texload.c fg_zlib.h -> sg_zlib.h 2001-03-24 14:12:00 +00:00
texload.h source tree reorganization prior to flightgear 0.7 2009-09-14 14:26:20 +02:00