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 | |
16 | |
17 | #ifndef Foundation_FIFOEvent_INCLUDED |
18 | #define Foundation_FIFOEvent_INCLUDED |
19 | |
20 | |
21 | #include "Poco/AbstractEvent.h" |
22 | #include "Poco/FIFOStrategy.h" |
23 | #include "Poco/AbstractDelegate.h" |
24 | |
25 | |
26 | namespace Poco { |
27 | |
28 | |
29 | //@ deprecated |
30 | template <class TArgs, class TMutex = FastMutex> |
31 | class FIFOEvent: public AbstractEvent < |
32 | TArgs, |
33 | FIFOStrategy<TArgs, AbstractDelegate<TArgs> >, |
34 | AbstractDelegate<TArgs>, |
35 | TMutex |
36 | > |
37 | /// A FIFOEvent uses internally a FIFOStrategy which guarantees |
38 | /// that delegates are invoked in the order they were added to |
39 | /// the event. |
40 | /// |
41 | /// Note that as of release 1.4.2, this is the default behavior |
42 | /// implemented by BasicEvent, so this class is provided |
43 | /// for backwards compatibility only. |
44 | { |
45 | public: |
46 | FIFOEvent() |
47 | { |
48 | } |
49 | |
50 | ~FIFOEvent() |
51 | { |
52 | } |
53 | |
54 | private: |
55 | FIFOEvent(const FIFOEvent& e); |
56 | FIFOEvent& operator = (const FIFOEvent& e); |
57 | }; |
58 | |
59 | |
60 | } // namespace Poco |
61 | |
62 | |
63 | #endif // Foundation_FIFOEvent_INCLUDED |
64 | |