OLD | NEW |
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void CPluginTabBase::ThreadProc() | 310 void CPluginTabBase::ThreadProc() |
311 { | 311 { |
312 // Force loading/creation of settings | 312 // Force loading/creation of settings |
313 CPluginSettings::GetInstance()->SetWorkingThreadId(); | 313 CPluginSettings::GetInstance(); |
314 | 314 |
315 std::string message = | 315 std::string message = |
316 "===========================================================================
=====\n" | 316 "===========================================================================
=====\n" |
317 "TAB THREAD process="; | 317 "TAB THREAD process="; |
318 message += std::to_string(::GetCurrentProcessId()); | 318 message += std::to_string(::GetCurrentProcessId()); |
319 message + " thread="; | 319 message + " thread="; |
320 message += std::to_string(::GetCurrentThreadId()); | 320 message += std::to_string(::GetCurrentThreadId()); |
321 message += | 321 message += |
322 "\n" | 322 "\n" |
323 "===========================================================================
====="; | 323 "===========================================================================
====="; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr
rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p
luginError.GetProcessId(), pluginError.GetThreadId()); | 356 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr
rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p
luginError.GetProcessId(), pluginError.GetThreadId()); |
357 } | 357 } |
358 | 358 |
359 // Non-hanging sleep | 359 // Non-hanging sleep |
360 Sleep(50); | 360 Sleep(50); |
361 } | 361 } |
362 | 362 |
363 tabLoopIteration++; | 363 tabLoopIteration++; |
364 } | 364 } |
365 } | 365 } |
OLD | NEW |