1
0
Fork 0

John Ellson:

Changes require to compile with a Fedora-Core Development system running
on an X86_64 platform with gcc-4.1.0.
This commit is contained in:
curt 2005-12-29 16:22:38 +00:00
parent 4be621fbe9
commit 880a43bdbf
4 changed files with 22 additions and 22 deletions

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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,