YARP
Yet Another Robot Platform
Event.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_EVENT_H
8 #define YARP_OS_EVENT_H
9 
10 #include <yarp/os/api.h>
11 
12 namespace yarp {
13 namespace os {
14 
24 {
25 public:
31  Event(bool autoResetAfterWait = true);
32 
36  virtual ~Event();
37 
47  void wait();
48 
49 
58  void signal();
59 
65  void reset();
66 
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 private:
69  class Private;
70  Private* mPriv;
71 #endif // DOXYGEN_SHOULD_SKIP_THIS
72 };
73 
74 } // namespace os
75 } // namespace yarp
76 
77 #endif // YARP_OS_EVENT_H
A class for thread synchronization and mutual exclusion.
Definition: Event.h:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18