|
Broom 1.0.0
A thread-local C++ Garbage Collector
|
#include <broom.h>
A helper RAII wrapper for per-thread initialization and teardown of Broom that combines BroomSharingScope and BroomNoDestructorScope. broom::sharing_no_destructor_scope is also available as an alias for this class to support a more traditional C++ style.
|
inline |
The constructor simply calls thread_init() with an optional configuration, setting the support_sharing of broom_configuration set to true and run_destructors_on_shutdown value of broom_configuration to false.
| config | The configuration to initialize Broom on this thread with. This parameter will be modified with support_sharing set to true and run_destructors_on_shutdown set to false. |
|
inline |
The destructor simply calls thread_teardown().
|
delete |
|
delete |
|
delete |
|
delete |