YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
PlatformSignal.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef YARP_OS_IMPL_PLATFORMSIGNAL_H
7
#define YARP_OS_IMPL_PLATFORMSIGNAL_H
8
9
#include <
yarp/conf/system.h
>
10
#ifdef YARP_HAS_ACE
11
# include <ace/OS_NS_signal.h>
12
// In one the ACE headers there is a definition of "main" for WIN32
13
# ifdef main
14
# undef main
15
# endif
16
#elif defined(YARP_HAS_SIGNAL_H)
17
# include <signal.h>
18
#elif defined(YARP_HAS_SYS_SIGNAL_H)
19
# include <sys/signal.h>
20
#endif
21
#if defined(YARP_HAS_CSIGNAL)
22
# include <csignal>
23
#endif
24
25
namespace
yarp::os::impl
{
26
27
#if defined(YARP_HAS_ACE)
28
using
ACE_OS::kill;
29
using
ACE_OS::sigaction;
30
using
ACE_OS::sigemptyset;
31
using
ACE_OS::sigfillset;
32
# if defined(YARP_HAS_CSIGNAL)
33
// Prefer std::signal over ::signal
34
using
std::raise;
35
using
std::signal;
36
# else
37
using ::raise;
38
using ::signal;
39
# endif
40
#else
41
# if defined(__APPLE__) && defined(sigfillset)
42
# undef sigfillset
43
# endif
44
using ::kill;
45
using ::sigaction;
46
using ::sigemptyset;
47
using ::sigfillset;
48
# if defined(YARP_HAS_CSIGNAL)
49
// Prefer std::signal over ::signal
50
using
std::raise;
51
using
std::signal;
52
# else
53
using ::raise;
54
using ::signal;
55
# endif
56
#endif
57
58
}
// namespace yarp::os::impl
59
60
61
#endif
// YARP_OS_IMPL_PLATFORMSIGNAL_H
yarp::os::impl
The components from which ports and connections are built.
system.h
YARP
3.11.100+20250401.4+gitb9213d601
src
libYARP_os
src
yarp
os
impl
PlatformSignal.h
Generated on Fri May 9 2025 02:40:48 for YARP by
1.9.8