OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coSyncActionManager.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_SYNCACTIONMANAGER_H
9 #define CO_SYNCACTIONMANAGER_H
10 
11 #include "coSynchronizedAction.h"
12 
13 namespace opencover
14 {
17 class COVEREXPORT coSyncActionManager
18 {
19 protected:
20  covise::DLinkList<coSynchronizedAction *> remoteActions;
21  covise::DLinkList<coSynchronizedAction *> localActions;
24 
25 public:
26  static coSyncActionManager *instance();
27  virtual ~coSyncActionManager();
28  void handleRemoteActions(int len, const char *message);
29  coSynchronizedAction *findLocalAction(int host, int type, int sequenceNumber);
30  coSynchronizedAction *findRemoteAction(int host, int type, int sequenceNumber);
31  void initiateAction(coSynchronizedAction *newAction, int type, bool blocking = false);
32 };
33 }
34 #endif
Definition: coSynchronizedAction.h:16
static coSyncActionManager * instance
Definition: coSyncActionManager.h:23
covise::DLinkList< coSynchronizedAction * > localActions
Definition: coSyncActionManager.h:21
covise::DLinkList< coSynchronizedAction * > remoteActions
Definition: coSyncActionManager.h:20
Definition: coSyncActionManager.h:17