diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-10-17 06:38:34 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-10-17 06:38:34 +0000 |
commit | 9fe76eefc0d2cf962f7845d8fbcd1fc92c8bc3b4 (patch) | |
tree | 739918311d96bdf17d19a44894a0ecc2f55a1981 /protocols/VKontakte/src/vk_queue.cpp | |
parent | cdb643a8d54843c523433b79e8eb6ca5a4ce0d5c (diff) |
VKontakte:
some cleanup
add more debuglog
git-svn-id: http://svn.miranda-ng.org/main/trunk@10811 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 08caa1684a..71ce7e8687 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -19,11 +19,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. void CVkProto::InitQueue()
{
+ debugLogA("CVkProto::InitQueue");
m_evRequestsQueue = CreateEvent(NULL, FALSE, FALSE, NULL);
}
void CVkProto::UninitQueue()
{
+ debugLogA("CVkProto::UninitQueue");
m_arRequestsQueue.destroy();
CloseHandle(m_evRequestsQueue);
}
@@ -48,7 +50,7 @@ LBL_Restart: }
}
- debugLogA("CVkProto::ExecuteRequest %s", pReq->szUrl);
+ debugLogA("CVkProto::ExecuteRequest \n====\n%s\n====\n", pReq->szUrl);
NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)pReq);
if (reply != NULL) {
if (pReq->m_pFunc != NULL)
@@ -73,6 +75,7 @@ LBL_Restart: AsyncHttpRequest* CVkProto::Push(AsyncHttpRequest *pReq, int iTimeout)
{
+ debugLogA("CVkProto::Push");
pReq->timeout = iTimeout;
{
mir_cslock lck(m_csRequestsQueue);
@@ -124,6 +127,7 @@ void CVkProto::WorkerThread(void*) ExecuteRequest(pReq);
if (need_sleep) // There can be maximum 3 requests to API methods per second from a client
Sleep(330); // (c) https://vk.com/dev/api_requests
+ debugLogA("CVkProto::WorkerThread: while");
}
}
|