Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 { | 300 { |
301 if (domain.empty() || domain != m_cacheDomain) | 301 if (domain.empty() || domain != m_cacheDomain) |
302 { | 302 { |
303 m_cacheFrames.clear(); | 303 m_cacheFrames.clear(); |
304 m_cacheDomain = domain; | 304 m_cacheDomain = domain; |
305 } | 305 } |
306 } | 306 } |
307 m_criticalSectionCache.Unlock(); | 307 m_criticalSectionCache.Unlock(); |
308 } | 308 } |
309 | 309 |
310 /* | |
311 * TODO: Replace the management of the log queue in this thread within CPluginTa bBase | |
312 * with a version of the log queue that uses a single internal worker thre ad. | |
313 */ | |
Eric
2015/02/18 19:20:25
I put this comment into the change set because the
Oleksandr
2015/02/27 10:59:27
I'd vote for an issue instead of a TODO. Though I
Eric
2015/02/27 16:47:47
https://issues.adblockplus.org/ticket/2058
| |
314 void CPluginTabBase::ThreadProc() | 310 void CPluginTabBase::ThreadProc() |
315 { | 311 { |
316 // Force loading/creation of settings | 312 // Force loading/creation of settings |
317 CPluginSettings* settings = CPluginSettings::GetInstance(); | 313 CPluginSettings* settings = CPluginSettings::GetInstance(); |
318 | 314 |
319 settings->SetWorkingThreadId(); | 315 settings->SetWorkingThreadId(); |
320 | 316 |
321 CString threadInfo; | 317 CString threadInfo; |
322 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId()); | 318 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId()); |
323 | 319 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
362 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId()); | 358 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId()); |
363 } | 359 } |
364 | 360 |
365 // Non-hanging sleep | 361 // Non-hanging sleep |
366 Sleep(50); | 362 Sleep(50); |
367 } | 363 } |
368 | 364 |
369 tabLoopIteration++; | 365 tabLoopIteration++; |
370 } | 366 } |
371 } | 367 } |
LEFT | RIGHT |