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:
lotodore
2007-09-30 13:15:52 +00:00
parent c33bf3a3d6
commit 5edf38a6cb
15 changed files with 69 additions and 14 deletions
+2 -2
View File
@@ -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;
}