[SERVER-26538] Use C++11 thread_local for all thread-specific-data Created: 09/Oct/16 Updated: 11/Jan/21 Resolved: 03/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Portability |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.11 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Once we have XCode 8 (see |
| Comments |
| Comment by Githook User [ 10/Aug/17 ] |
|
Author: {'email': 'acm@mongodb.com', 'name': 'Andrew Morrow'}Message: Also, use thread_local everywhere for our thread specific data needs |
| Comment by Githook User [ 10/Aug/17 ] |
|
Author: {'email': 'acm@mongodb.com', 'name': 'Andrew Morrow'}Message: Also, use thread_local everywhere for our thread specific data needs |
| Comment by Andrew Morrow (Inactive) [ 16/Jun/17 ] |
|
Unfortunately, it appears that destructors for non-trivial thread_local's do not work on solaris (at least not with gcc 5.4). That makes it impossible for us to implement this, at least until we go ahead and drop support for solaris. |