#1544 Make QuadratureRules::rule() thread-safe
Metadata
| Property | Value |
|---|---|
| Reported by | Jö Fahlke (jorrit@jorrit.de) |
| Reported at | Dec 11, 2014 21:19 |
| Type | Feature Request |
| Version | 2.3 |
| Operating System | Unspecified / All |
| Last edited by | Jö Fahlke (jorrit@jorrit.de) |
| Last edited at | Feb 12, 2015 12:48 |
| Closed by | Jö Fahlke (jorrit@jorrit.de) |
| Closed at | Feb 12, 2015 12:48 |
| Closed in version | Unknown |
| Resolution | Fixed |
| Comment |
Description
QuadratureRules::rule() uses an internal cache to store quadrature rules, and generates quadrature rules only once. This races in a multithreading environment, when two thread simultaneously try to insert a new quadrature rule in the cache, or (possibly) when one thread searches for a quadrature rule in the cache and another thread inserts a new quadrature rule.