FIFOEvent.h 1.2 KB

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