jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3KB

  1. /*
  2. Copyright (C) 2014 Cédric Schieli
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14. */
  15. #ifndef __JackWaitCallbackDriver__
  16. #define __JackWaitCallbackDriver__
  17. #include "JackWaitThreadedDriver.h"
  18. namespace Jack
  19. {
  20. /*!
  21. \brief Wrapper for a restartable non-threaded driver (e.g. JackProxyDriver).
  22. Simply ends its thread when the decorated driver Initialize method returns.
  23. Self register with the supplied JackRestarterDriver so it can restart the thread.
  24. */
  25. class SERVER_EXPORT JackWaitCallbackDriver : public JackWaitThreadedDriver
  26. {
  27. public:
  28. JackWaitCallbackDriver(JackRestarterDriver* driver);
  29. protected:
  30. bool ExecuteReal();
  31. };
  32. } // end of namespace
  33. #endif