mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
added missing initialization of pthread_mutex (#728)
* added missing initialization of pthread_mutex * fixed cut and past error
This commit is contained in:
parent
ea4aaf743f
commit
14ec4cf1da
@ -51,6 +51,7 @@ class interpolatingDetector : public singlePhotonDetector {
|
|||||||
// cout << "**"<< xmin << " " << xmax << " " << ymin << " " << ymax <<
|
// cout << "**"<< xmin << " " << xmax << " " << ymin << " " << ymax <<
|
||||||
// endl;
|
// endl;
|
||||||
fi = new pthread_mutex_t;
|
fi = new pthread_mutex_t;
|
||||||
|
pthread_mutex_init(fi, NULL);
|
||||||
};
|
};
|
||||||
|
|
||||||
interpolatingDetector(interpolatingDetector *orig)
|
interpolatingDetector(interpolatingDetector *orig)
|
||||||
|
@ -63,6 +63,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
|
|||||||
quad(UNDEFINED_QUADRANT), tot(0), quadTot(0) {
|
quad(UNDEFINED_QUADRANT), tot(0), quadTot(0) {
|
||||||
|
|
||||||
fm = new pthread_mutex_t;
|
fm = new pthread_mutex_t;
|
||||||
|
pthread_mutex_init(fm, NULL);
|
||||||
|
|
||||||
eventMask = new eventType *[ny];
|
eventMask = new eventType *[ny];
|
||||||
// val=new double*[ny];
|
// val=new double*[ny];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user