MRPT  1.9.9
rp::hal::Event Class Reference

Detailed Description

Definition at line 37 of file event.h.

#include <rplidar/src/hal/event.h>

Public Types

enum  { EVENT_OK = 1, EVENT_TIMEOUT = 2, EVENT_FAILED = 0 }
 

Public Member Functions

 Event (bool isAutoReset=true, bool isSignal=false)
 
 ~Event ()
 
void set (bool isSignal=true)
 
unsigned long wait (unsigned long timeout=0xFFFFFFFF)
 

Protected Member Functions

void release ()
 

Protected Attributes

HANDLE _event
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
EVENT_OK 
EVENT_TIMEOUT 
EVENT_FAILED 

Definition at line 40 of file event.h.

Constructor & Destructor Documentation

◆ Event()

rp::hal::Event::Event ( bool  isAutoReset = true,
bool  isSignal = false 
)
inline

Definition at line 47 of file event.h.

References _event, FALSE, and TRUE.

◆ ~Event()

rp::hal::Event::~Event ( )
inline

Definition at line 64 of file event.h.

References release().

Member Function Documentation

◆ release()

void rp::hal::Event::release ( )
inlineprotected

Definition at line 165 of file event.h.

References _event.

Referenced by ~Event().

◆ set()

void rp::hal::Event::set ( bool  isSignal = true)
inline

◆ wait()

unsigned long rp::hal::Event::wait ( unsigned long  timeout = 0xFFFFFFFF)
inline

Member Data Documentation

◆ _event

HANDLE rp::hal::Event::_event
protected

Definition at line 176 of file event.h.

Referenced by Event(), release(), set(), and wait().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020