diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-22 14:57:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-22 14:57:50 +0000 |
commit | c650e1e172dd9131dfcb17948113935d805c0dfb (patch) | |
tree | bf41aa11a434407715f40e50e0a4050d421f8781 /plugins/Clist_modern/src/modern_clui.cpp | |
parent | bdf88550d1e2807a9c719259385917ba3d0dd91e (diff) |
trying to catch hung thread in clist_modern
git-svn-id: http://svn.miranda-ng.org/main/trunk@11582 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clui.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp index 65b79e2627..a87d3c4cad 100644 --- a/plugins/Clist_modern/src/modern_clui.cpp +++ b/plugins/Clist_modern/src/modern_clui.cpp @@ -1425,22 +1425,26 @@ static int CLUI_SyncSmoothAnimation(WPARAM, LPARAM) static void CLUI_SmoothAnimationThreadProc(void *param)
{
- thread_catcher lck(g_hSmoothAnimationThread);
+ Netlib_Logf(NULL, "SmoothAnimationThreadProc thread end");
if (mutex_bAnimationInProgress) {
do {
if (!g_mutex_bLockUpdating) {
if (MirandaExiting())
- return;
+ break;
Sync(CLUI_SyncSmoothAnimation, 0, (LPARAM)param);
SleepEx(20, TRUE);
if (MirandaExiting())
- return;
+ break;
}
else SleepEx(0, TRUE);
- } while (mutex_bAnimationInProgress);
+ }
+ while (mutex_bAnimationInProgress);
}
+
+ Netlib_Logf(NULL, "SmoothAnimationThreadProc thread end");
+ g_hSmoothAnimationThread = NULL;
}
static int CLUI_SmoothAlphaThreadTransition()
|