/usr/include/Poco/PriorityEvent.h is in libpoco-dev 1.8.0.1-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | //
// PriorityEvent.h
//
// Library: Foundation
// Package: Events
// Module: PriorityEvent
//
// Implementation of the PriorityEvent template.
//
// Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_PriorityEvent_INCLUDED
#define Foundation_PriorityEvent_INCLUDED
#include "Poco/AbstractEvent.h"
#include "Poco/PriorityStrategy.h"
#include "Poco/AbstractPriorityDelegate.h"
namespace Poco {
template <class TArgs, class TMutex = FastMutex>
class PriorityEvent: public AbstractEvent <
TArgs,
PriorityStrategy<TArgs, AbstractPriorityDelegate<TArgs> >,
AbstractPriorityDelegate<TArgs>,
TMutex
>
/// A PriorityEvent uses internally a PriorityStrategy which
/// invokes delegates in order of priority (lower priorities first).
/// PriorityEvent's can only be used together with PriorityDelegate's.
/// PriorityDelegate's are sorted according to the priority value, when
/// two delegates have the same priority, they are invoked in
/// an arbitrary manner.
{
public:
PriorityEvent()
{
}
~PriorityEvent()
{
}
private:
PriorityEvent(const PriorityEvent&);
PriorityEvent& operator = (const PriorityEvent&);
};
} // namespace Poco
#endif // Foundation_PriorityEvent_INCLUDED
|