cisst-saw
Loading...
Searching...
No Matches
mtsTaskFromSignal.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3
4/*
5 Author(s): Anton Deguet
6 Created on: 2009-12-10
7
8 (C) Copyright 2009-2026 Johns Hopkins University (JHU), All Rights Reserved.
9
10--- begin cisst license - do not edit ---
11
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://www.cisst.org/cisst/license.txt.
15
16--- end cisst license ---
17*/
18
19
24
25#ifndef _mtsTaskFromSignal_h
26#define _mtsTaskFromSignal_h
27
31
32// Always include last
34
38
40{
42
43 protected:
45
47 void Init(void);
48
51 void * RunInternal(void * argument) override;
52
56
59
60 public:
71 mtsTaskFromSignal(const std::string & name,
72 unsigned int sizeStateTable = 256);
73
75
77 virtual ~mtsTaskFromSignal() {}
78
79 /* documented in base class */
80 void Kill(void) override;
81
82 /* documented in base class */
83 mtsInterfaceRequired * AddInterfaceRequiredWithoutSystemEventHandlers(const std::string & interfaceRequiredName,
84 mtsRequiredType required = MTS_REQUIRED) override;
85
86 /* documented in base class */
87 mtsInterfaceProvided * AddInterfaceProvidedWithoutSystemEvents(const std::string & newInterfaceName,
88 mtsInterfaceQueueingPolicy queueingPolicy = MTS_COMPONENT_POLICY) override;
89
90};
91
92
94
95
96#endif // _mtsTaskFromSignal_h
Definition mtsCallableVoidBase.h:40
Definition mtsInterfaceProvided.h:98
Definition mtsInterfaceRequired.h:83
Definition mtsParameterTypes.h:1401
mtsTaskContinuous(const std::string &name, unsigned int sizeStateTable=256, bool newThread=true)
Definition mtsTaskFromSignal.h:40
void * RunInternal(void *argument) override
void PostCommandQueuedMethod(void)
virtual ~mtsTaskFromSignal()
Definition mtsTaskFromSignal.h:77
mtsTaskContinuous BaseType
Definition mtsTaskFromSignal.h:44
mtsTaskFromSignal(const std::string &name, unsigned int sizeStateTable=256)
mtsCallableVoidBase * PostCommandQueuedCallable
Definition mtsTaskFromSignal.h:58
mtsInterfaceRequired * AddInterfaceRequiredWithoutSystemEventHandlers(const std::string &interfaceRequiredName, mtsRequiredType required=MTS_REQUIRED) override
mtsInterfaceProvided * AddInterfaceProvidedWithoutSystemEvents(const std::string &newInterfaceName, mtsInterfaceQueueingPolicy queueingPolicy=MTS_COMPONENT_POLICY) override
void Kill(void) override
mtsTaskFromSignal(const mtsTaskConstructorArg &arg)
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Portability across compilers and operating systems tools.
Rules of exporting.
Forward declarations and #define for cisstMultiTask.
mtsRequiredType
Definition mtsForwardDeclarations.h:51
@ MTS_REQUIRED
Definition mtsForwardDeclarations.h:51
mtsInterfaceQueueingPolicy
Definition mtsForwardDeclarations.h:38
@ MTS_COMPONENT_POLICY
Definition mtsForwardDeclarations.h:38
Defines a continuously executing task.