diff -r 0fd27995241b -r 9ac0a0a7da70 javaruntimes/starterutils/src.linux/osthreadsupervisor.h --- a/javaruntimes/starterutils/src.linux/osthreadsupervisor.h Tue May 11 16:07:20 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Utility class for mointoring thread death. -* -*/ - - -#ifndef OSTHREADSUPERVISOR_H -#define OSTHREADSUPERVISOR_H - - -namespace java // codescanner::namespace -{ - -namespace runtime // codescanner::namespace -{ - -/** - * This class is responsible for detecting abnormal thread death beloning to - * own process. If the abnormal death happens this will terminate the whole - * process. This is for Linux and the actual monitoring implementation is - * missing. - */ -class OsThreadSupervisor -{ -public: - - /** - * Constructor of the OsThreadSupervisor. - * @param tryThreadDumping Whether to try to do thread dump in panic case. - * Might cause another panic. - * @throws std::exception on error cases. - */ - OsThreadSupervisor(bool tryThreadDumping); - - /** - * Destructor of the RuntimeStarterUtils. Will stop the thread monitoring. - * The class is not meant to be inherited, so destructor can be non - * virtual. - */ - ~OsThreadSupervisor(); - -private: // Methods. - - /** - * No default constructor. - */ - OsThreadSupervisor(); - - /* - * No copy constructor allowed. - */ - OsThreadSupervisor(const OsThreadSupervisor&); - - /* - * No Assignment operator allowed. - */ - OsThreadSupervisor& operator= (const OsThreadSupervisor&); -}; - -} // end namespace runtime -} // end namespace java - - -#endif // OSTHREADSUPERVISOR_H