This refactors global variables into common context, guest context and worker context.
Each context is a global singleton, initialized at the library load time or API server start time.
How has this been tested?
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Document update (this change is mainly a documentation update)
Checklist:
[x] My code passes format and lint checks.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have tested my code with a reasonable workload.
Signed-off-by: Zhiting Zhu zhitingz@cs.utexas.edu
Description
This refactors global variables into common context, guest context and worker context. Each context is a global singleton, initialized at the library load time or API server start time.
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: