mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-13 15:27:09 +01:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
1 parent
e0e34b4030
commit
4a6bfc086c
6219 files changed
+1209835
-454916
No files matched your search
@@ -0,0 +1,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
|
||||
Reference in new issue
Block a user