OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::OMICore::BufferThrottle Class Reference

Public Member Functions

 BufferThrottle (const size_t low_water_arg, const size_t high_water_arg)
 
void size_change (const size_t size)
 
bool ready () const
 

Private Attributes

const size_t low_water
 
const size_t high_water
 
volatile bool ready_ = true
 

Detailed Description

Definition at line 430 of file omi.hpp.

Constructor & Destructor Documentation

◆ BufferThrottle()

openvpn::OMICore::BufferThrottle::BufferThrottle ( const size_t  low_water_arg,
const size_t  high_water_arg 
)
inline

Definition at line 433 of file omi.hpp.

Member Function Documentation

◆ ready()

bool openvpn::OMICore::BufferThrottle::ready ( ) const
inline

Definition at line 456 of file omi.hpp.

◆ size_change()

void openvpn::OMICore::BufferThrottle::size_change ( const size_t  size)
inline

Definition at line 442 of file omi.hpp.

Member Data Documentation

◆ high_water

const size_t openvpn::OMICore::BufferThrottle::high_water
private

Definition at line 463 of file omi.hpp.

◆ low_water

const size_t openvpn::OMICore::BufferThrottle::low_water
private

Definition at line 462 of file omi.hpp.

◆ ready_

volatile bool openvpn::OMICore::BufferThrottle::ready_ = true
private

Definition at line 464 of file omi.hpp.


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