diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2001-06-25 15:04:19 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2001-06-25 15:04:19 +0000 |
commit | 7d9e4da42b05a5e4ce0b66611d409e9d2cad5fb6 (patch) | |
tree | 87ad4f8b6dbb79a5496bac92abe90159f6560227 /vos | |
parent | deef81dc8bd0f9c58389b68a3b0fa10e7fcfe4ca (diff) |
removed timer manager cleanup, TODO: add thread-joining when last timer is removed
Diffstat (limited to 'vos')
-rw-r--r-- | vos/source/timer.cxx | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/vos/source/timer.cxx b/vos/source/timer.cxx index 7775b847d910..84665467bdd9 100644 --- a/vos/source/timer.cxx +++ b/vos/source/timer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: timer.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jl $ $Date: 2001-03-14 10:01:10 $ + * last change: $Author: jbu $ $Date: 2001-06-25 16:04:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -533,23 +533,10 @@ void OTimerManager::run() // Timer manager cleanup // -/* should be removed by the new init/deint-routines of the RTL */ - -class OTimerManagerCleanup -{ -public: - ~OTimerManagerCleanup(); -}; - -OTimerManagerCleanup::~OTimerManagerCleanup() -{ - if ( OTimerManager::m_pManager != 0 ) - { - OTimerManager::m_pManager->kill(); - } -} - -static OTimerManagerCleanup TimerManagerCleanup; - - - +// jbu: +// The timer manager cleanup has been removed (no thread is killed anymore). +// So the thread leaks. +// This will result in a GPF in case the vos-library gets unloaded before +// process termination. +// -> TODO : rewrite this file, so that the timerManager thread gets destroyed, +// when there are no timers anymore ! |