]> OCCT Git - occt-copy.git/commit
0031921: Application Framework - reading OCAF data from several threads is not possible
authormpv <mpv@opencascade.com>
Mon, 16 Nov 2020 13:49:23 +0000 (16:49 +0300)
committernds <nds@opencascade.com>
Mon, 29 Mar 2021 10:03:17 +0000 (13:03 +0300)
commitb32f772653e61c5dcb225e2d6148073d722d774f
treeedd863cc04b549e2897a283e0d14618a58cee540
parentc1ae74949569a433c857fc559c473aa135888ae9
0031921: Application Framework - reading OCAF data from several threads is not possible

Make myLastFoundChild field of TDF_LabelNode that can be changed during accessing to different sub-labels in different threads as atomic (only for newer versions of compilers which support this "atomic").

Added definition of Standard_ATOMIC macro to the Standard_Macro.hxx

(cherry picked from commit b84b672185520e52a25d63b4487f285a068abc34)
(cherry picked from commit 938ceb32b369c81c87716054fce5426b00354a44)
(cherry picked from commit e9ad8d4d65005119a461cbd5bfa9292efa773a06)
src/Standard/Standard_Macro.hxx
src/TDF/TDF_LabelNode.hxx