mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
made sure all cond_wait and cond_signal calls are inside lock/unlock
calls
This commit is contained in:
parent
b8c7247feb
commit
975765289b
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ static void queue_add_cmd(enum command_t cmd, enum adjust_t adj, int value)
|
|||
entry->value = value;
|
||||
pthread_mutex_lock(&queue_guard);
|
||||
queue_add((void *) entry);
|
||||
pthread_mutex_unlock(&queue_guard);
|
||||
pthread_cond_signal(&runner_awake);
|
||||
pthread_mutex_unlock(&queue_guard);
|
||||
}
|
||||
|
||||
static void queue_add_text(char *txt, size_t length)
|
||||
|
|
@ -71,8 +71,8 @@ static void queue_add_text(char *txt, size_t length)
|
|||
entry->len = length;
|
||||
pthread_mutex_lock(&queue_guard);
|
||||
queue_add((void *) entry);
|
||||
pthread_mutex_unlock(&queue_guard);
|
||||
pthread_cond_signal(&runner_awake);
|
||||
pthread_mutex_unlock(&queue_guard);
|
||||
}
|
||||
|
||||
static int process_command(struct synth_t *s, char *buf, int start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue