From 5e9bdfc4d71ef343bb4c1b0967acf428f72c117d Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sun, 30 Apr 2006 21:26:16 +0000 Subject: [PATCH] Chart doesn't hang on quit anymore (bug 431) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17283 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/game/chart/ChartWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/kits/game/chart/ChartWindow.cpp b/src/tests/kits/game/chart/ChartWindow.cpp index faf96cba26..f96ec520fe 100644 --- a/src/tests/kits/game/chart/ChartWindow.cpp +++ b/src/tests/kits/game/chart/ChartWindow.cpp @@ -2219,10 +2219,9 @@ ChartWindow::Animation2(void *data) status_t status; do { status = acquire_sem_etc(w->second_thread_lock, 1, B_TIMEOUT, 500000); - + if (w->fKillThread) + return 0; } while (status == B_TIMED_OUT || status == B_INTERRUPTED); - if (w->fKillThread) - return 0; /* the duration of the processing is needed to control the dynamic load split (see RefreshStar) */