Samuel Thibault
2017-09-28 23:23:09 UTC
Hello,
See the use in all other files, this mutex is meant to lock the whole
speakup screen reader.
Samuel
Its good practice to comment the usage of spinlock variable.
Yes, but@@ -246,7 +246,7 @@ static u_long last_spk_jiffy;
struct st_spk_t *speakup_console[MAX_NR_CONSOLES];
-DEFINE_MUTEX(spk_mutex);
+DEFINE_MUTEX(spk_mutex); /* Spinlock for synth_release() */
This is far from properly describing its role :)struct st_spk_t *speakup_console[MAX_NR_CONSOLES];
-DEFINE_MUTEX(spk_mutex);
+DEFINE_MUTEX(spk_mutex); /* Spinlock for synth_release() */
See the use in all other files, this mutex is meant to lock the whole
speakup screen reader.
Samuel