More shared_ptr in engine to prevent race conditions when accessing client engine from gui. Still incomplete.

This commit is contained in:
lotodore
2011-01-09 14:16:20 +00:00
parent 54bc7aaa8d
commit 3974e7cac5
17 changed files with 95 additions and 94 deletions
+4 -4
View File
@@ -47,8 +47,8 @@ public:
void initHand();
void startHand();
HandInterface *getCurrentHand();
const HandInterface *getCurrentHand() const;
boost::shared_ptr<HandInterface> getCurrentHand();
const boost::shared_ptr<HandInterface> getCurrentHand() const;
PlayerList getSeatsList() const {return seatsList;}
PlayerList getActivePlayerList() const {return activePlayerList;}
@@ -83,8 +83,8 @@ private:
GuiInterface *myGui;
Log *myLog;
HandInterface *currentHand;
BoardInterface *currentBoard;
boost::shared_ptr<HandInterface> currentHand;
boost::shared_ptr<BoardInterface> currentBoard;
PlayerList seatsList;
PlayerList activePlayerList; // used seats