:spakles:

This commit is contained in:
Nikolaj
2021-10-28 14:59:16 +02:00
parent 7118bcc0a8
commit 8691e70920
6 changed files with 7 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ int job_queue_destroy(struct job_queue *job_queue) {
free(job_queue->jobs);
job_queue->jobs = NULL;
//job_queue = NULL;
pthread_mutex_unlock(&queue_push);
pthread_mutex_unlock(&queue_pop);
@@ -87,7 +88,7 @@ int job_queue_pop(struct job_queue *job_queue, void **data) {
}
if (job_queue->size == job_queue->capacity - 1) {
pthread_mutex_unlock(&queue_pop);
pthread_mutex_unlock(&queue_push);
}
//printf("pop end\n");