Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rosrt::detail::SimpleGC Class Reference

#include <simple_gc.h>

Classes

struct  PoolGCItem
 

Public Types

typedef void(* DeleteFunc) (void *pool)
 
typedef bool(* IsDeletableFunc) (void *pool)
 

Public Member Functions

void add (void *pool, DeleteFunc deleter, IsDeletableFunc deletable)
 
 SimpleGC (const InitOptions &ops)
 
 ~SimpleGC ()
 

Private Member Functions

void gcThread ()
 

Private Attributes

float period_
 
MWSRQueue< PoolGCItempool_gc_queue_
 
boost::thread pool_gc_thread_
 
volatile bool running_
 

Detailed Description

Definition at line 84 of file simple_gc.h.

Member Typedef Documentation

◆ DeleteFunc

typedef void(* rosrt::detail::SimpleGC::DeleteFunc) (void *pool)

Definition at line 87 of file simple_gc.h.

◆ IsDeletableFunc

typedef bool(* rosrt::detail::SimpleGC::IsDeletableFunc) (void *pool)

Definition at line 88 of file simple_gc.h.

Constructor & Destructor Documentation

◆ SimpleGC()

rosrt::detail::SimpleGC::SimpleGC ( const InitOptions ops)

Definition at line 109 of file simple_gc.cpp.

◆ ~SimpleGC()

rosrt::detail::SimpleGC::~SimpleGC ( )

Definition at line 117 of file simple_gc.cpp.

Member Function Documentation

◆ add()

void rosrt::detail::SimpleGC::add ( void *  pool,
DeleteFunc  deleter,
IsDeletableFunc  deletable 
)

Definition at line 128 of file simple_gc.cpp.

◆ gcThread()

void rosrt::detail::SimpleGC::gcThread ( )
private

Definition at line 137 of file simple_gc.cpp.

Member Data Documentation

◆ period_

float rosrt::detail::SimpleGC::period_
private

Definition at line 109 of file simple_gc.h.

◆ pool_gc_queue_

MWSRQueue<PoolGCItem> rosrt::detail::SimpleGC::pool_gc_queue_
private

Definition at line 108 of file simple_gc.h.

◆ pool_gc_thread_

boost::thread rosrt::detail::SimpleGC::pool_gc_thread_
private

Definition at line 107 of file simple_gc.h.

◆ running_

volatile bool rosrt::detail::SimpleGC::running_
private

Definition at line 98 of file simple_gc.h.


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


rosrt
Author(s): Josh Faust
autogenerated on Wed Mar 2 2022 00:54:17