Files
o3de/Code/Framework
Jeremy Ong 6660c365b9 Disambiguate null interface case
In some cases, the interface being queried may be persistently nullptr
(e.g. a gem isn't active, or a feature was disabled by a cvar). In this
case, querying the interface would always enter the writer-lock branch
with existing code because nullptr was synonmous with "we haven't
queried for this variable yet."

This PR adds an additional state variable that is set when s_instance is
assigned to, so that after the variable is queried and found to be null,
future queries can enter the read-lock branch.

Signed-off-by: Jeremy Ong <jcong@amazon.com>
2021-12-23 16:25:44 -07:00
..
2021-12-23 16:25:44 -07:00
2021-12-20 16:53:41 +00:00
2021-09-08 16:50:57 -07:00
2021-12-02 18:50:51 -08:00
2021-08-18 12:38:00 -07:00