From 1b9f74db681e6caff261edaeda51e454582f6004 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Tue, 15 Oct 2013 11:48:33 -0700 Subject: [PATCH] Made some things static like they should be --- Plugins/MIDI/MIDI/BMPlayer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Plugins/MIDI/MIDI/BMPlayer.cpp b/Plugins/MIDI/MIDI/BMPlayer.cpp index 295d33011..ca1f54d20 100644 --- a/Plugins/MIDI/MIDI/BMPlayer.cpp +++ b/Plugins/MIDI/MIDI/BMPlayer.cpp @@ -40,23 +40,23 @@ struct Cached_SoundFont Cached_SoundFont() : handle( 0 ) { } }; -pthread_mutex_t Cache_Lock; +static pthread_mutex_t Cache_Lock; static std::map Cache_List; -bool Cache_Running = false; +static bool Cache_Running = false; -std::thread * Cache_Thread = NULL; +static std::thread * Cache_Thread = NULL; -void cache_run(); +static void cache_run(); -void cache_init() +static void cache_init() { pthread_mutex_init( &Cache_Lock, NULL ); Cache_Thread = new std::thread( cache_run ); } -void cache_deinit() +static void cache_deinit() { Cache_Running = false; Cache_Thread->join(); @@ -68,7 +68,7 @@ void cache_deinit() } } -HSOUNDFONT cache_open( const char * path ) +static HSOUNDFONT cache_open( const char * path ) { HSOUNDFONT font = NULL; @@ -97,7 +97,7 @@ HSOUNDFONT cache_open( const char * path ) return font; } -void cache_close( HSOUNDFONT handle ) +static void cache_close( HSOUNDFONT handle ) { pthread_mutex_lock( &Cache_Lock ); @@ -114,7 +114,7 @@ void cache_close( HSOUNDFONT handle ) pthread_mutex_unlock( &Cache_Lock ); } -void cache_run() +static void cache_run() { Cache_Running = true; @@ -143,7 +143,7 @@ void cache_run() } } -class Bass_Initializer +static class Bass_Initializer { pthread_mutex_t lock;