Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginTabBase.cpp

Issue 5187613258416128: Issue #1234 - Rewrite internals of debug facility (Closed)
Patch Set: rebase only Created Nov. 26, 2015, 1:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« src/plugin/PluginDebug.cpp ('K') | « src/plugin/PluginStdAfx.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 m_cacheFrames.clear(); 332 m_cacheFrames.clear();
333 m_cacheDomain = domain; 333 m_cacheDomain = domain;
334 } 334 }
335 } 335 }
336 m_criticalSectionCache.Unlock(); 336 m_criticalSectionCache.Unlock();
337 } 337 }
338 338
339 void CPluginTabBase::ThreadProc() 339 void CPluginTabBase::ThreadProc()
340 { 340 {
341 // Force loading/creation of settings 341 // Force loading/creation of settings
342 CPluginSettings::GetInstance()->SetWorkingThreadId(); 342 CPluginSettings::GetInstance();
343 343
344 std::string message = 344 std::string message =
345 "=========================================================================== =====\n" 345 "=========================================================================== =====\n"
346 "TAB THREAD process="; 346 "TAB THREAD process=";
347 message += std::to_string(::GetCurrentProcessId()); 347 message += std::to_string(::GetCurrentProcessId());
348 message + " thread="; 348 message + " thread=";
349 message += std::to_string(::GetCurrentThreadId()); 349 message += std::to_string(::GetCurrentThreadId());
350 message += 350 message +=
351 "\n" 351 "\n"
352 "=========================================================================== ====="; 352 "=========================================================================== =====";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId()); 385 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId());
386 } 386 }
387 387
388 // Non-hanging sleep 388 // Non-hanging sleep
389 Sleep(50); 389 Sleep(50);
390 } 390 }
391 391
392 tabLoopIteration++; 392 tabLoopIteration++;
393 } 393 }
394 } 394 }
OLDNEW
« src/plugin/PluginDebug.cpp ('K') | « src/plugin/PluginStdAfx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld