#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< PoolGCItem > | pool_gc_queue_ |
boost::thread | pool_gc_thread_ |
volatile bool | running_ |
Definition at line 52 of file simple_gc.h.
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.
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.
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.
float rosrt::detail::SimpleGC::period_ [private] |
Definition at line 77 of file simple_gc.h.
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.