// Module : SALOME
#include "SALOMEDS_AttributeOpened.hxx"
+#include "SALOMEDS.hxx"
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
bool SALOMEDS_AttributeOpened::IsOpened()
{
bool aValue;
- if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_local_impl)->IsOpened();
+ if (_isLocal) {
+ SALOMEDS::Locker lock;
+ aValue = (bool)Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_local_impl)->IsOpened();
+ }
else aValue = SALOMEDS::AttributeOpened::_narrow(_corba_impl)->IsOpened();
return aValue;
}
-
+
void SALOMEDS_AttributeOpened::SetOpened(bool value)
{
- if(_isLocal) Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_local_impl)->SetOpened((int)value);
+ if (_isLocal) {
+ SALOMEDS::Locker lock;
+ Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_local_impl)->SetOpened((int)value);
+ }
else SALOMEDS::AttributeOpened::_narrow(_corba_impl)->SetOpened(value);
}