View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0011846 | VTK | (No Category) | public | 2011-02-11 13:19 | 2012-12-12 12:02 | ||||
Reporter | David Gobbi | ||||||||
Assigned To | David Gobbi | ||||||||
Priority | high | Severity | major | Reproducibility | random | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0011846: The vtkLinearExtrusionFilter is not thread safe | ||||||||
Description | Multiple instances of vtkLinearExtrusionFilter cannot run in multiple threads, because this filter uses static variables to store its internal method return values. The bad code, which dates back to 1995, is as follows: double *vtkLinearExtrusionFilter::ViaNormal(double x[3], vtkIdType id, vtkDataArray *n) { static double xNew[3], normal[3]; int i; n->GetTuple(id, normal); for (i=0; i<3; i++) { xNew[i] = x[i] + this->ScaleFactor*normal[i]; } return xNew; } double *vtkLinearExtrusionFilter::ViaVector(double x[3], vtkIdType vtkNotUsed(id), vtkDataArray *vtkNotUsed(n)) { static double xNew[3]; int i; for (i=0; i<3; i++) { xNew[i] = x[i] + this->ScaleFactor*this->Vector[i]; } return xNew; } double *vtkLinearExtrusionFilter::ViaPoint(double x[3], vtkIdType vtkNotUsed(id), vtkDataArray *vtkNotUsed(n)) { static double xNew[3]; int i; for (i=0; i<3; i++) { xNew[i] = x[i] + this->ScaleFactor*(x[i] - this->ExtrusionPoint[i]); } return xNew; } | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0025399) David Gobbi (developer) 2011-02-11 16:02 |
9e49da9b34d77e047306437d6e4394e3d8eaf272 |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-02-11 13:19 | David Gobbi | New Issue | |
2011-02-11 16:02 | David Gobbi | Note Added: 0025399 | |
2011-02-11 16:02 | David Gobbi | Status | backlog => @80@ |
2011-02-11 16:02 | David Gobbi | Resolution | open => fixed |
2011-02-11 16:02 | David Gobbi | Assigned To | => David Gobbi |
2012-12-12 12:02 | David Gobbi | Status | customer review => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |