[SERVER-52822] Introduce ThreadContext class Created: 12/Nov/20  Updated: 29/Oct/23  Resolved: 18/Nov/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-52821 Allow thread names to be cached by un... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-11-16, Service arch 2020-11-30
Participants:
Linked BF Score: 0

 Description   

When we introduce new thread_local variables, we often end up rewriting the same pattern to extend visibility of those variables. We could benefit from a ThreadContext decorable that does the pattern once, correctly. This class would also be a convenient place to hang thread related static functions.



 Comments   
Comment by Githook User [ 18/Nov/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: Revert "SERVER-52822 Introduced ThreadContext class"

This reverts commit efa320e38916e2a4fd52d808e326af11d2b7938c.
Branch: master
https://github.com/mongodb/mongo/commit/1b2279ecaa64f70079ead90818639116b7a7c68a

Comment by Githook User [ 17/Nov/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-52822 Introduced ThreadContext class
Branch: master
https://github.com/mongodb/mongo/commit/efa320e38916e2a4fd52d808e326af11d2b7938c

Generated at Thu Feb 08 05:29:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.