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 52 of file simple_gc.h.

Member Typedef Documentation

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

Definition at line 55 of file simple_gc.h.

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

Definition at line 56 of file simple_gc.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file simple_gc.cpp.

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

Definition at line 53 of file simple_gc.cpp.

Member Function Documentation

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

Definition at line 64 of file simple_gc.cpp.

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

Definition at line 73 of file simple_gc.cpp.

Member Data Documentation

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

Definition at line 77 of file simple_gc.h.

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

Definition at line 76 of file simple_gc.h.

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

Definition at line 75 of file simple_gc.h.

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

Definition at line 66 of file simple_gc.h.


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


rosrt
Author(s): Josh Faust
autogenerated on Fri Apr 5 2019 02:16:39