Improve thread safety.

This commit is contained in:
lotodore
2011-01-12 23:35:45 +00:00
parent b6c820718a
commit 2a7456998a
10 changed files with 51 additions and 39 deletions
+6 -4
View File
@@ -103,6 +103,7 @@ ClientBeRo::setSmallBlindPositionId(unsigned theValue)
unsigned
ClientBeRo::getSmallBlindPositionId() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return smallBlindPositionId;
}
@@ -116,6 +117,7 @@ ClientBeRo::setBigBlindPositionId(unsigned theValue)
unsigned
ClientBeRo::getBigBlindPositionId() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return bigBlindPositionId;
}
@@ -220,15 +222,15 @@ ClientBeRo::getMinimumRaise() const
void
ClientBeRo::setFullBetRule ( bool theValue )
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
fullBetRule = theValue;
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
fullBetRule = theValue;
}
bool
ClientBeRo::getFullBetRule() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return fullBetRule;
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return fullBetRule;
}
void