Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CNfsContextPool Class Reference

#include <NFSFile.h>

Public Types

using Factory = std::function<std::shared_ptr<CNfsContext>()>
 
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>
 

Public Member Functions

CNfsContextLease Checkout (const std::string &key, unsigned int maxContexts, const Factory &create)
 
void Retire (const CNfsContext &context)
 
void RetireAll ()
 
std::vector< std::shared_ptr< CNfsContext > > TakeUnused (TimePoint now, bool all)
 
std::vector< std::shared_ptr< CNfsContext > > GetKeepAlivesDue (TimePoint now) const
 

Friends

class CNfsContextLease
 

Member Typedef Documentation

◆ Factory

using CNfsContextPool::Factory = std::function<std::shared_ptr<CNfsContext>()>

◆ TimePoint

using CNfsContextPool::TimePoint = std::chrono::time_point<std::chrono::steady_clock>

Member Function Documentation

◆ Checkout()

CNfsContextLease CNfsContextPool::Checkout ( const std::string & key,
unsigned int maxContexts,
const Factory & create )

◆ GetKeepAlivesDue()

std::vector< std::shared_ptr< CNfsContext > > CNfsContextPool::GetKeepAlivesDue ( TimePoint now) const

◆ Retire()

void CNfsContextPool::Retire ( const CNfsContext & context)

◆ RetireAll()

void CNfsContextPool::RetireAll ( )

◆ TakeUnused()

std::vector< std::shared_ptr< CNfsContext > > CNfsContextPool::TakeUnused ( TimePoint now,
bool all )

Friends And Related Symbol Documentation

◆ CNfsContextLease

friend class CNfsContextLease
friend

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