:spakles:
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user