Fixed some msvc problems with libircclient. Fixed auto start boost timer issue. Fixed irc thread termination (this time for real). Using strdup and free on MSVC causes "heap corruption error" in debug mode - use _strdup instead in libircclient.
This commit is contained in:
+2
-2
@@ -66,14 +66,14 @@ PlayerData::SetAvatarFile(const std::string &avatarFile)
|
||||
boost::shared_ptr<SessionData>
|
||||
PlayerData::GetNetSessionData() const
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||
// setting/getting boost::shared_ptr is thread safe.
|
||||
return m_netSessionData;
|
||||
}
|
||||
|
||||
void
|
||||
PlayerData::SetNetSessionData(boost::shared_ptr<SessionData> session)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||
// setting/getting boost::shared_ptr is thread safe.
|
||||
m_netSessionData = session;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user