Browse Source

Fix race condition.

master
Christopher Brannon 8 years ago
parent
commit
2e9ec8e06a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/fifo.c

+ 1
- 1
src/libespeak-ng/fifo.c View File

t_espeak_command *a_command = (t_espeak_command *)pop(); t_espeak_command *a_command = (t_espeak_command *)pop();


if (a_command == NULL) { if (a_command == NULL) {
a_status = pthread_mutex_unlock(&my_mutex);
my_command_is_running = 0; my_command_is_running = 0;
a_status = pthread_mutex_unlock(&my_mutex);
} else { } else {
my_start_is_required = 0; my_start_is_required = 0;



Loading…
Cancel
Save