cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
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
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
24
25
#ifndef _mtsTaskFromSignal_h
26
#define _mtsTaskFromSignal_h
27
28
#include <
cisstCommon/cmnPortability.h
>
29
#include <
cisstMultiTask/mtsForwardDeclarations.h
>
30
#include <
cisstMultiTask/mtsTaskContinuous.h
>
31
32
// Always include last
33
#include <
cisstMultiTask/mtsExport.h
>
34
38
39
class
CISST_EXPORT
mtsTaskFromSignal
:
public
mtsTaskContinuous
40
{
41
CMN_DECLARE_SERVICES(
CMN_NO_DYNAMIC_CREATION
,
CMN_LOG_ALLOW_DEFAULT
);
42
43
protected
:
44
typedef
mtsTaskContinuous
BaseType
;
45
47
void
Init
(
void
);
48
51
void
*
RunInternal
(
void
* argument)
override
;
52
55
void
PostCommandQueuedMethod
(
void
);
56
58
mtsCallableVoidBase
*
PostCommandQueuedCallable
;
59
60
public
:
71
mtsTaskFromSignal
(
const
std::string & name,
72
unsigned
int
sizeStateTable = 256);
73
74
mtsTaskFromSignal
(
const
mtsTaskConstructorArg
& arg);
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
93
CMN_DECLARE_SERVICES_INSTANTIATION
(
mtsTaskFromSignal
)
94
95
96
#endif
// _mtsTaskFromSignal_h
mtsCallableVoidBase
Definition
mtsCallableVoidBase.h:40
mtsInterfaceProvided
Definition
mtsInterfaceProvided.h:98
mtsInterfaceRequired
Definition
mtsInterfaceRequired.h:83
mtsTaskConstructorArg
Definition
mtsParameterTypes.h:1401
mtsTaskContinuous::mtsTaskContinuous
mtsTaskContinuous(const std::string &name, unsigned int sizeStateTable=256, bool newThread=true)
mtsTaskFromSignal
Definition
mtsTaskFromSignal.h:40
mtsTaskFromSignal::RunInternal
void * RunInternal(void *argument) override
mtsTaskFromSignal::PostCommandQueuedMethod
void PostCommandQueuedMethod(void)
mtsTaskFromSignal::~mtsTaskFromSignal
virtual ~mtsTaskFromSignal()
Definition
mtsTaskFromSignal.h:77
mtsTaskFromSignal::BaseType
mtsTaskContinuous BaseType
Definition
mtsTaskFromSignal.h:44
mtsTaskFromSignal::mtsTaskFromSignal
mtsTaskFromSignal(const std::string &name, unsigned int sizeStateTable=256)
mtsTaskFromSignal::PostCommandQueuedCallable
mtsCallableVoidBase * PostCommandQueuedCallable
Definition
mtsTaskFromSignal.h:58
mtsTaskFromSignal::AddInterfaceRequiredWithoutSystemEventHandlers
mtsInterfaceRequired * AddInterfaceRequiredWithoutSystemEventHandlers(const std::string &interfaceRequiredName, mtsRequiredType required=MTS_REQUIRED) override
mtsTaskFromSignal::AddInterfaceProvidedWithoutSystemEvents
mtsInterfaceProvided * AddInterfaceProvidedWithoutSystemEvents(const std::string &newInterfaceName, mtsInterfaceQueueingPolicy queueingPolicy=MTS_COMPONENT_POLICY) override
mtsTaskFromSignal::Kill
void Kill(void) override
mtsTaskFromSignal::Init
void Init(void)
mtsTaskFromSignal::mtsTaskFromSignal
mtsTaskFromSignal(const mtsTaskConstructorArg &arg)
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CMN_NO_DYNAMIC_CREATION
const int CMN_NO_DYNAMIC_CREATION
Definition
cmnClassRegisterMacros.h:325
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_LOG_ALLOW_DEFAULT
#define CMN_LOG_ALLOW_DEFAULT
Definition
cmnLogLoD.h:76
cmnPortability.h
Portability across compilers and operating systems tools.
mtsExport.h
Rules of exporting.
mtsForwardDeclarations.h
Forward declarations and #define for cisstMultiTask.
mtsRequiredType
mtsRequiredType
Definition
mtsForwardDeclarations.h:51
MTS_REQUIRED
@ MTS_REQUIRED
Definition
mtsForwardDeclarations.h:51
mtsInterfaceQueueingPolicy
mtsInterfaceQueueingPolicy
Definition
mtsForwardDeclarations.h:38
MTS_COMPONENT_POLICY
@ MTS_COMPONENT_POLICY
Definition
mtsForwardDeclarations.h:38
mtsTaskContinuous.h
Defines a continuously executing task.
Generated by
1.18.0