]> 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>
Thu, 29 Apr 2021 06:55:29 +0000 (09:55 +0300)
commite141d120c2be4e3ce8aed10cb5d441c6f5a00ac2
treea1a2818a41d2c537b217ec7121a65e0d8a90920a
parent70a39006e194cbcb24fa0c3e2eb42106eac609f1
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