High performance C++ framework for concurrent servers
Public Types | Public Member Functions | List of all members
seastar::abort_on_expiry< Clock > Class Template Reference

Detailed Description

template<typename Clock = lowres_clock>
class seastar::abort_on_expiry< Clock >

Facility to tie a timeout with an abort source Can be used to make abortanle fibers also support timeouts

#include <seastar/core/abort_on_expiry.hh>

Public Types

using clock = Clock
using time_point = typename Clock::time_point

Public Member Functions

 abort_on_expiry (time_point timeout)
 abort_on_expiry (abort_on_expiry &&)=delete
seastar::abort_sourceabort_source ()

Constructor & Destructor Documentation

◆ abort_on_expiry()

template<typename Clock = lowres_clock>
seastar::abort_on_expiry< Clock >::abort_on_expiry ( time_point  timeout)

Creates a timer and an abort source associated with it When the timer reaches timeout point it triggers an abort autimatically

Member Function Documentation

◆ abort_source()

template<typename Clock = lowres_clock>
seastar::abort_source & seastar::abort_on_expiry< Clock >::abort_source ( )
abort source associated with the timeout

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