Public Member Functions | Private Attributes | List of all members
livox_ros::Semaphore Class Reference

#include <lds.h>

Public Member Functions

int GetCount ()
 
 Semaphore (int count=0)
 
void Signal ()
 
void Wait ()
 

Private Attributes

volatile int count_
 
std::condition_variable cv_
 
std::mutex mutex_
 

Detailed Description

Definition at line 397 of file lds.h.

Constructor & Destructor Documentation

livox_ros::Semaphore::Semaphore ( int  count = 0)
inlineexplicit

Definition at line 399 of file lds.h.

Member Function Documentation

int livox_ros::Semaphore::GetCount ( )
inline

Definition at line 414 of file lds.h.

void livox_ros::Semaphore::Signal ( )
inline

Definition at line 402 of file lds.h.

void livox_ros::Semaphore::Wait ( )
inline

Definition at line 408 of file lds.h.

Member Data Documentation

volatile int livox_ros::Semaphore::count_
private

Definition at line 421 of file lds.h.

std::condition_variable livox_ros::Semaphore::cv_
private

Definition at line 420 of file lds.h.

std::mutex livox_ros::Semaphore::mutex_
private

Definition at line 419 of file lds.h.


The documentation for this class was generated from the following file:


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46