diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2016-06-11 23:45:23 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2016-06-11 23:45:23 +0000 |
commit | 3e4284bb32b1515cdcac6741d2c2e94f64f08063 (patch) | |
tree | 15602d9e534406646b4b10c889809e10ff07ef30 /plugins/PluginUpdater | |
parent | f36117c31cd21ba5442be8fd1d7234b1e71380b2 (diff) |
MRA: change avatars load threads count default value from 4 to 1
add threads names
git-svn-id: http://svn.miranda-ng.org/main/trunk@16948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 4 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index 6f15fc8024..6ad434754f 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -34,6 +34,8 @@ static void SelectAll(HWND hDlg, bool bEnable) static void ApplyDownloads(void *param)
{
+ Thread_SetName("PluginUpdater: ApplyDownloads");
+
HWND hDlg = (HWND)param;
//////////////////////////////////////////////////////////////////////////////////////
@@ -376,6 +378,8 @@ static FILEINFO* ServerEntryToFileInfo(const ServListEntry &hash, const TCHAR* t //
static void GetList(void *)
{
+ Thread_SetName("PluginUpdater: GetList");
+
TCHAR tszTempPath[MAX_PATH];
DWORD dwLen = GetTempPath(_countof(tszTempPath), tszTempPath);
if (tszTempPath[dwLen-1] == '\\')
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 98256b7e56..d4b4ce1e7d 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -43,6 +43,8 @@ static void SetStringText(HWND hWnd, size_t i, TCHAR *ptszText) static void ApplyUpdates(void *param)
{
+ Thread_SetName("PluginUpdater: ApplyUpdates");
+
HWND hDlg = (HWND)param;
OBJLIST<FILEINFO> &todo = *(OBJLIST<FILEINFO> *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
if (todo.getCount() == 0) {
@@ -380,6 +382,8 @@ static INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM static void DlgUpdateSilent(void *param)
{
+ Thread_SetName("PluginUpdater: DlgUpdateSilent");
+
OBJLIST<FILEINFO> &UpdateFiles = *(OBJLIST<FILEINFO> *)param;
if (UpdateFiles.getCount() == 0) {
delete &UpdateFiles;
@@ -767,6 +771,8 @@ static int ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, const TCHAR *tsz static void CheckUpdates(void *)
{
Netlib_LogfT(hNetlibUser, _T("Checking for updates"));
+ Thread_SetName("PluginUpdater: CheckUpdates");
+
TCHAR tszTempPath[MAX_PATH];
DWORD dwLen = GetTempPath(_countof(tszTempPath), tszTempPath);
if (tszTempPath[dwLen - 1] == '\\')
@@ -887,6 +893,7 @@ void InitTimer(void *type) {
if (!opts.bUpdateOnPeriod)
return;
+ Thread_SetName("PluginUpdater: InitTimer");
LONGLONG interval;
|