Skip to content

Commit

Permalink
Initialize pthread rwlock
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Sep 20, 2023
1 parent 34ce6b3 commit ff2fad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clib/lib/job_queue/job_queue_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include <ert/job_queue/queue_driver.hpp>

job_queue_status_type *job_queue_status_alloc() {
return new job_queue_status_struct;
auto job_queue_status = new job_queue_status_struct;
pthread_rwlock_init(&job_queue_status->rw_lock, nullptr);
return job_queue_status;
}

void job_queue_status_free(job_queue_status_type *status) { delete status; }
Expand Down

0 comments on commit ff2fad3

Please sign in to comment.