Pigweed
 
Loading...
Searching...
No Matches
pw::async2::TimeFuture< Clock > Class Template Reference

#include <time_provider.h>

Inheritance diagram for pw::async2::TimeFuture< Clock >:
pw::IntrusiveForwardList< T >::Item

Public Member Functions

 TimeFuture (const TimeFuture &)=delete
 
TimeFutureoperator= (const TimeFuture &)=delete
 
 TimeFuture (TimeFuture &&other)
 
TimeFutureoperator= (TimeFuture &&other)
 
 ~TimeFuture ()
 
Poll< typename Clock::time_point > Pend (Context &cx)
 
void Reset (typename Clock::time_point expiration)
 Resets TimeFuture to expire at expiration.
 
TimeProvider< Clock > & provider ()
 
Clock::time_point expiration ()
 

Friends

class TimeProvider< Clock >
 

Additional Inherited Members

- Protected Member Functions inherited from pw::IntrusiveForwardList< T >::Item
constexpr Item ()=default
 

Detailed Description

template<typename Clock>
class pw::async2::TimeFuture< Clock >

A timer which can asynchronously wait for time to pass.

This timer uses a TimeProvider to control its execution and so can be used with any TimeProvider with a compatible Clock type.

Constructor & Destructor Documentation

◆ ~TimeFuture()

template<typename Clock >
pw::async2::TimeFuture< Clock >::~TimeFuture ( )
inline

Destructs timer.

Destruction is thread-safe, but not necessarily interrupt-safe.


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