thread_notification_listener.cpp

00001 
00002 /***************************************************************************
00003  *  thread_notification_listener.cpp - thread notification listener interface
00004  *
00005  *  Created: Fri Jun 08 16:39:20 2007
00006  *  Copyright  2006-2007  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version. A runtime exception applies to
00014  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00022  */
00023 
00024 #include <core/threading/thread_notification_listener.h>
00025 
00026 namespace fawkes {
00027 
00028 /** @class ThreadNotificationListener <core/threading/thread_notification_listener.h>
00029  * Thread notification listener interface.
00030  * A thread notification listener can be added to a thread to be notified of a
00031  * successful startup of if the initialization fails (and hence the thread is
00032  * never started).
00033  *
00034  * @author Tim Niemueller
00035  *
00036  * @fn bool ThreadNotificationListener::thread_started(Thread *thread) throw()
00037  * Thread started successfully.
00038  * This is called by the thread itself when the thread started successfully.
00039  * @param thread thread that started successfully
00040  * @return true to stay registered for further thread notifications, false to
00041  * unregister.
00042  *
00043  * @fn bool ThreadNotificationListener::thread_init_failed(Thread *thread) throw()
00044  * Thread initialization failed.
00045  * This method is called by ThreadList if one of the threads in the list failed
00046  * to initialize. This is not necessarily the thread that you registered the
00047  * notification for. However, the argument is always the thread that you
00048  * registered for, no matter which thread in the list failed.
00049  * @param thread thread that you registered for
00050  * @return true to stay registered for further thread notifications, false to
00051  * unregister.
00052  */
00053 
00054 /** Virtual empty destructor. */
00055 ThreadNotificationListener::~ThreadNotificationListener()
00056 {
00057 }
00058 
00059 
00060 } // end namespace fawkes