class CMyClass : public Dapfor::Common::CDataObject
{
public:
double GetPrice() const;
void SetPrice(double newPrice);
private:
double m_Price;
mutable Dapfor::Common::CSyncObject m_Sync;
};
double CMyClass::GetPrice() const
{
Dapfor::Common::CLock lock(m_Sync);
return m_Price;
}
void CMyClass::SetPrice(double newPrice)
{
{
Dapfor::Common::CLock lock(m_Sync);
m_Price = newPrice;
}
NotifyUpdate(FidPrice);
}