From: curt Date: Thu, 29 Dec 2005 16:22:38 +0000 (+0000) Subject: John Ellson: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=880a43bdbf394430e75b361283d5403bf9392e55;p=flightgear.git John Ellson: Changes require to compile with a Fedora-Core Development system running on an X86_64 platform with gcc-4.1.0. --- diff --git a/src/Environment/environment_ctrl.cxx b/src/Environment/environment_ctrl.cxx index 310ba7d72..e4f7ac964 100644 --- a/src/Environment/environment_ctrl.cxx +++ b/src/Environment/environment_ctrl.cxx @@ -703,6 +703,16 @@ FGMetarEnvironmentCtrl::update_metar_properties( const FGMetar *m ) #if defined(ENABLE_THREADS) +/** + * Ensure mutex is unlocked. + */ +void +metar_cleanup_handler( void* arg ) +{ + FGMetarEnvironmentCtrl* fetcher = (FGMetarEnvironmentCtrl*) arg; + fetcher->mutex.unlock(); +} + /** * */ @@ -724,16 +734,6 @@ FGMetarEnvironmentCtrl::MetarThread::run() } pthread_cleanup_pop(1); } - -/** - * Ensure mutex is unlocked. - */ -void -metar_cleanup_handler( void* arg ) -{ - FGMetarEnvironmentCtrl* fetcher = (FGMetarEnvironmentCtrl*) arg; - fetcher->mutex.unlock(); -} #endif // ENABLE_THREADS diff --git a/src/Environment/fgclouds.hxx b/src/Environment/fgclouds.hxx index ae555b363..519f229c5 100644 --- a/src/Environment/fgclouds.hxx +++ b/src/Environment/fgclouds.hxx @@ -53,7 +53,7 @@ private: void update_metar_properties( const FGMetar *m ); - void FGClouds::update_env_config (); + void update_env_config (); int update_event; SGSoundSample *snd_lightning; diff --git a/src/Scenery/FGTileLoader.cxx b/src/Scenery/FGTileLoader.cxx index ca61e8294..fa12871e8 100644 --- a/src/Scenery/FGTileLoader.cxx +++ b/src/Scenery/FGTileLoader.cxx @@ -156,6 +156,16 @@ FGTileLoader::update() #if defined(ENABLE_THREADS) +/** + * Ensure mutex is unlocked. + */ +void +cleanup_handler( void* arg ) +{ + FGTileLoader* loader = (FGTileLoader*) arg; + loader->mutex.unlock(); +} + /** * */ @@ -192,14 +202,4 @@ FGTileLoader::LoaderThread::run() } pthread_cleanup_pop(1); } - -/** - * Ensure mutex is unlocked. - */ -void -cleanup_handler( void* arg ) -{ - FGTileLoader* loader = (FGTileLoader*) arg; - loader->mutex.unlock(); -} #endif // ENABLE_THREADS diff --git a/src/Traffic/SchedFlight.hxx b/src/Traffic/SchedFlight.hxx index b6541bd46..504ed51d4 100644 --- a/src/Traffic/SchedFlight.hxx +++ b/src/Traffic/SchedFlight.hxx @@ -67,7 +67,7 @@ public: FGScheduledFlight(); FGScheduledFlight(const FGScheduledFlight &other); // FGScheduledFlight(const string); - FGScheduledFlight::FGScheduledFlight(const string& cs, + FGScheduledFlight(const string& cs, const string& fr, const string& depPrt, const string& arrPrt,