LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Throttle Class Reference

#include "throttle.h"

Public Member Functions

 Throttle (std::chrono::milliseconds, Qt::TimerType=Qt::TimerType::CoarseTimer)
std::chrono::milliseconds GetInterval () const
void Backoff ()
bool await_ready ()
void await_suspend (std::coroutine_handle<>)
void await_resume () const

Detailed Description

Definition at line 20 of file throttle.h.

Constructor & Destructor Documentation

◆ Throttle()

LC::Util::Throttle::Throttle ( std::chrono::milliseconds interval,
Qt::TimerType type = Qt::TimerType::CoarseTimer )
explicit

Definition at line 14 of file throttle.cpp.

Member Function Documentation

◆ await_ready()

bool LC::Util::Throttle::await_ready ( )

Definition at line 41 of file throttle.cpp.

◆ await_resume()

void LC::Util::Throttle::await_resume ( ) const

Definition at line 57 of file throttle.cpp.

◆ await_suspend()

void LC::Util::Throttle::await_suspend ( std::coroutine_handle<> handle)

Definition at line 49 of file throttle.cpp.

◆ Backoff()

void LC::Util::Throttle::Backoff ( )

Definition at line 36 of file throttle.cpp.

◆ GetInterval()

std::chrono::milliseconds LC::Util::Throttle::GetInterval ( ) const

Definition at line 31 of file throttle.cpp.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/threads/coro/throttle.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/threads/coro/throttle.cpp