More shared_ptr in engine to prevent race conditions when accessing client engine from gui. Still incomplete.
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user