added missing initialization of pthread_mutex (#728)

* added missing initialization of pthread_mutex

* fixed cut and past error
This commit is contained in:
Erik Fröjdh 2023-05-05 14:45:56 +02:00 committed by GitHub
parent ea4aaf743f
commit 14ec4cf1da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class interpolatingDetector : public singlePhotonDetector {
// cout << "**"<< xmin << " " << xmax << " " << ymin << " " << ymax <<
// endl;
fi = new pthread_mutex_t;
pthread_mutex_init(fi, NULL);
};
interpolatingDetector(interpolatingDetector *orig)

View File

@ -63,6 +63,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
quad(UNDEFINED_QUADRANT), tot(0), quadTot(0) {
fm = new pthread_mutex_t;
pthread_mutex_init(fm, NULL);
eventMask = new eventType *[ny];
// val=new double*[ny];