Home Help Center

ICE(grid) and threads

ferrazrafaelferrazrafael Member Rafael FerrazOrganization: Federal University of Ouro PretoProject: MMOG
I need to take care of my application data been accessed by ICE or it make them thread safe by default?

example:
class DemoI : public Demo {

protected: 
    vector<int> data;

public:
    DemoI();
    vector<int> getData();
    void setData(vector<int> data);
}

This code needs to be synchronized? I need to control it explicitly?

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    You need to take care to synchronize access to data, see the following documents to better understand Ice threading model.
  • ferrazrafaelferrazrafael Member Rafael FerrazOrganization: Federal University of Ouro PretoProject: MMOG
    thank you xdm :)
Sign In or Register to comment.