Simplify varhandle initialization for handles that are possibly ignored.
If a varhandle is used, we must call initialize on it; if it is not used, the key must be cleared. Combine these by extending initialize() to take a flag. If true, we proceed as usual; if false, we clear the key and return success without doing anything else. Also some small cleanups to tests.
Showing
- AtlasTest/ControlTest/share/StoreGateReentrant.ref 112 additions, 122 deletionsAtlasTest/ControlTest/share/StoreGateReentrant.ref
- Control/AthenaExamples/AthExStoreGateExample/src/ReadDataReentrant.cxx 5 additions, 3 deletions...aExamples/AthExStoreGateExample/src/ReadDataReentrant.cxx
- Control/AthenaExamples/AthExStoreGateExample/src/ReadDataReentrant.h 1 addition, 1 deletion...enaExamples/AthExStoreGateExample/src/ReadDataReentrant.h
- Control/AthenaExamples/AthExStoreGateExample/src/WriteDataReentrant.cxx 16 additions, 15 deletions...Examples/AthExStoreGateExample/src/WriteDataReentrant.cxx
- Control/AthenaExamples/AthExStoreGateExample/src/WriteDataReentrant.h 1 addition, 1 deletion...naExamples/AthExStoreGateExample/src/WriteDataReentrant.h
- Control/StoreGate/StoreGate/VarHandleBase.h 3 additions, 0 deletionsControl/StoreGate/StoreGate/VarHandleBase.h
- Control/StoreGate/StoreGate/VarHandleKey.h 6 additions, 2 deletionsControl/StoreGate/StoreGate/VarHandleKey.h
- Control/StoreGate/share/ReadHandle_test.ref 8 additions, 8 deletionsControl/StoreGate/share/ReadHandle_test.ref
- Control/StoreGate/share/VarHandleBase_test.ref 15 additions, 14 deletionsControl/StoreGate/share/VarHandleBase_test.ref
- Control/StoreGate/share/VarHandleKey_test.ref 5 additions, 5 deletionsControl/StoreGate/share/VarHandleKey_test.ref
- Control/StoreGate/src/VarHandleBase.cxx 9 additions, 1 deletionControl/StoreGate/src/VarHandleBase.cxx
- Control/StoreGate/src/VarHandleKey.cxx 13 additions, 4 deletionsControl/StoreGate/src/VarHandleKey.cxx
- Control/StoreGate/test/VarHandleBase_test.cxx 9 additions, 0 deletionsControl/StoreGate/test/VarHandleBase_test.cxx
- Control/StoreGate/test/VarHandleKey_test.cxx 8 additions, 0 deletionsControl/StoreGate/test/VarHandleKey_test.cxx
Loading
Please register or sign in to comment