FIFOEvent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // FIFOEvent.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/FIFOEvent.h#2 $
  5. //
  6. // Library: Foundation
  7. // Package: Events
  8. // Module: FIFOEvent
  9. //
  10. // Implementation of the FIFOEvent template.
  11. //
  12. // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
  13. // and Contributors.
  14. //
  15. // SPDX-License-Identifier: BSL-1.0
  16. //
  17. #ifndef Foundation_FIFOEvent_INCLUDED
  18. #define Foundation_FIFOEvent_INCLUDED
  19. #include "Poco/AbstractEvent.h"
  20. #include "Poco/FIFOStrategy.h"
  21. #include "Poco/AbstractDelegate.h"
  22. namespace Poco {
  23. //@ deprecated
  24. template <class TArgs, class TMutex = FastMutex>
  25. class FIFOEvent: public AbstractEvent <
  26. TArgs,
  27. FIFOStrategy<TArgs, AbstractDelegate<TArgs> >,
  28. AbstractDelegate<TArgs>,
  29. TMutex
  30. >
  31. /// A FIFOEvent uses internally a FIFOStrategy which guarantees
  32. /// that delegates are invoked in the order they were added to
  33. /// the event.
  34. ///
  35. /// Note that as of release 1.4.2, this is the default behavior
  36. /// implemented by BasicEvent, so this class is provided
  37. /// for backwards compatibility only.
  38. {
  39. public:
  40. FIFOEvent()
  41. {
  42. }
  43. ~FIFOEvent()
  44. {
  45. }
  46. private:
  47. FIFOEvent(const FIFOEvent& e);
  48. FIFOEvent& operator = (const FIFOEvent& e);
  49. };
  50. } // namespace Poco
  51. #endif // Foundation_FIFOEvent_INCLUDED