Use FLUID_MUTEX_INIT instead of G_STATIC_MUTEX_INIT

This commit is contained in:
carlo-bramini 2017-12-24 14:46:39 +01:00 committed by GitHub
parent 74122f2d6d
commit c6a2b0ceba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ int fluid_jack_driver_process(jack_nframes_t nframes, void *arg);
void delete_fluid_jack_midi_driver(fluid_midi_driver_t *p); void delete_fluid_jack_midi_driver(fluid_midi_driver_t *p);
static fluid_mutex_t last_client_mutex = G_STATIC_MUTEX_INIT; /* Probably not necessary, but just in case drivers are created by multiple threads */ static fluid_mutex_t last_client_mutex = FLUID_MUTEX_INIT; /* Probably not necessary, but just in case drivers are created by multiple threads */
static fluid_jack_client_t *last_client = NULL; /* Last unpaired client. For audio/MIDI driver pairing. */ static fluid_jack_client_t *last_client = NULL; /* Last unpaired client. For audio/MIDI driver pairing. */