Eclipse SUMO - Simulation of Urban MObility
MFXThreadEvent.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3// Copyright (C) 2004-2022 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
20//
21/****************************************************************************/
22#ifndef MFXThreadEvent_h
23#define MFXThreadEvent_h
24#include <config.h>
25
26#include "fxexdefs.h"
27
28#ifndef FXBASEOBJECT_H
29#include "MFXBaseObject.h"
30#endif
31namespace FXEX {
32
104class /*FXAPI */MFXThreadEvent : public MFXBaseObject {
105 FXDECLARE(MFXThreadEvent)
106
107private:
109
110protected:
113
114public:
115 enum {
117 ID_LAST
118 };
119
120public:
121 long onThreadSignal(FXObject*, FXSelector, void*);
122 long onThreadEvent(FXObject*, FXSelector, void*);
123
124public:
126 MFXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
127
134 void signal();
135
142 void signal(FXuint seltype);
143
145 virtual ~MFXThreadEvent();
146};
147
148} // namespace FXEX
149
150
151#endif
MFXThreadEvent & operator=(const MFXThreadEvent &)
long onThreadEvent(FXObject *, FXSelector, void *)
long onThreadSignal(FXObject *, FXSelector, void *)
virtual ~MFXThreadEvent()
destructor
MFXThreadEvent(const MFXThreadEvent &)
MFXThreadEventHandle event
Definition: fxexdefs.h:57
FXInputHandle * MFXThreadEventHandle
Definition: fxexdefs.h:284