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: small fixes from comment #7 Created May 19, 2015, 3:13 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
« no previous file with comments | « 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 m_cacheFrames.clear(); 306 m_cacheFrames.clear();
307 m_cacheDomain = domain; 307 m_cacheDomain = domain;
308 } 308 }
309 } 309 }
310 m_criticalSectionCache.Unlock(); 310 m_criticalSectionCache.Unlock();
311 } 311 }
312 312
313 void CPluginTabBase::ThreadProc() 313 void CPluginTabBase::ThreadProc()
314 { 314 {
315 // Force loading/creation of settings 315 // Force loading/creation of settings
316 CPluginSettings::GetInstance()->SetWorkingThreadId(); 316 CPluginSettings::GetInstance();
317 317
318 std::string message = 318 std::string message =
319 "=========================================================================== =====\n" 319 "=========================================================================== =====\n"
320 "TAB THREAD process="; 320 "TAB THREAD process=";
321 message += std::to_string(::GetCurrentProcessId()); 321 message += std::to_string(::GetCurrentProcessId());
322 message + " thread="; 322 message + " thread=";
323 message += std::to_string(::GetCurrentThreadId()); 323 message += std::to_string(::GetCurrentThreadId());
324 message += 324 message +=
325 "\n" 325 "\n"
326 "=========================================================================== ====="; 326 "=========================================================================== =====";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId()); 359 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId());
360 } 360 }
361 361
362 // Non-hanging sleep 362 // Non-hanging sleep
363 Sleep(50); 363 Sleep(50);
364 } 364 }
365 365
366 tabLoopIteration++; 366 tabLoopIteration++;
367 } 367 }
368 } 368 }
OLDNEW
« no previous file with comments | « src/plugin/PluginStdAfx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld