diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
commit | e08a7cc8649d735a166879a3c1cf0b1642c651d1 (patch) | |
tree | 1916876b0586ea5bf1c00b22e59e274708e3b61d /plugins/Quotes/src/QuotesProviderBase.cpp | |
parent | 481296bc540cdbdd0efef87ddaa173c96619edc3 (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderBase.cpp')
-rw-r--r-- | plugins/Quotes/src/QuotesProviderBase.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Quotes/src/QuotesProviderBase.cpp b/plugins/Quotes/src/QuotesProviderBase.cpp index dfb1c59d1d..e080025278 100644 --- a/plugins/Quotes/src/QuotesProviderBase.cpp +++ b/plugins/Quotes/src/QuotesProviderBase.cpp @@ -248,7 +248,7 @@ void CQuotesProviderBase::AddContact(MCONTACT hContact) void CQuotesProviderBase::DeleteContact(MCONTACT hContact)
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
TContracts::iterator i = std::find(m_aContacts.begin(), m_aContacts.end(), hContact);
if (i != m_aContacts.end())
@@ -824,7 +824,7 @@ MCONTACT CQuotesProviderBase::CreateNewContact(const tstring& rsName) db_set_ts(hContact, QUOTES_PROTOCOL_NAME, DB_STR_QUOTE_SYMBOL, rsName.c_str());
db_set_ts(hContact, LIST_MODULE_NAME, CONTACT_LIST_NAME, rsName.c_str());
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
m_aContacts.push_back(hContact);
}
else {
@@ -922,7 +922,7 @@ void CQuotesProviderBase::Run() TContracts anContacts;
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
anContacts = m_aContacts;
}
@@ -960,7 +960,7 @@ void CQuotesProviderBase::Run() m_sTendencyFormat = Quotes_DBGetStringT(NULL, QUOTES_PROTOCOL_NAME, visitor.m_pszDbTendencyFormat, visitor.m_pszDefTendencyFormat);
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
anContacts = m_aContacts;
}
break;
@@ -973,7 +973,7 @@ void CQuotesProviderBase::Run() }
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
anContacts = m_aRefreshingContacts;
m_aRefreshingContacts.clear();
}
@@ -987,7 +987,7 @@ void CQuotesProviderBase::Run() case WAIT_TIMEOUT:
nTimeout = get_refresh_timeout_miliseconds(visitor);
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
anContacts = m_aContacts;
}
{
@@ -1007,7 +1007,7 @@ void CQuotesProviderBase::OnEndRun() {
TContracts anContacts;
{// for CCritSection
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
anContacts = m_aContacts;
m_aRefreshingContacts.clear();
}
@@ -1030,7 +1030,7 @@ void CQuotesProviderBase::RefreshSettings() void CQuotesProviderBase::RefreshAllContacts()
{
{// for CCritSection
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
m_aRefreshingContacts.clear();
std::for_each(std::begin(m_aContacts), std::end(m_aContacts), [&](MCONTACT hContact){m_aRefreshingContacts.push_back(hContact); });
}
@@ -1042,7 +1042,7 @@ void CQuotesProviderBase::RefreshAllContacts() void CQuotesProviderBase::RefreshContact(MCONTACT hContact)
{
{// for CCritSection
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
m_aRefreshingContacts.push_back(hContact);
}
|