Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
Public Member Functions | List of all members
broom::BroomSharingNoDestructorScope Struct Reference

#include <broom.h>

Public Member Functions

 BroomSharingNoDestructorScope (broom_configuration config={})
 
 ~BroomSharingNoDestructorScope ()
 
 BroomSharingNoDestructorScope (const BroomSharingNoDestructorScope &other)=delete
 
 BroomSharingNoDestructorScope (BroomSharingNoDestructorScope &&other)=delete
 
BroomSharingNoDestructorScopeoperator= (const BroomSharingNoDestructorScope &other)=delete
 
BroomSharingNoDestructorScopeoperator= (BroomSharingNoDestructorScope &&other)=delete
 

Detailed Description

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.

Definition at line 198 of file broom.h.

Constructor & Destructor Documentation

◆ BroomSharingNoDestructorScope() [1/3]

broom::BroomSharingNoDestructorScope::BroomSharingNoDestructorScope ( broom_configuration  config = {})
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.

Parameters
configThe 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.

Definition at line 209 of file broom.h.

◆ ~BroomSharingNoDestructorScope()

broom::BroomSharingNoDestructorScope::~BroomSharingNoDestructorScope ( )
inline

The destructor simply calls thread_teardown().

Definition at line 217 of file broom.h.

◆ BroomSharingNoDestructorScope() [2/3]

broom::BroomSharingNoDestructorScope::BroomSharingNoDestructorScope ( const BroomSharingNoDestructorScope other)
delete

◆ BroomSharingNoDestructorScope() [3/3]

broom::BroomSharingNoDestructorScope::BroomSharingNoDestructorScope ( BroomSharingNoDestructorScope &&  other)
delete

Member Function Documentation

◆ operator=() [1/2]

BroomSharingNoDestructorScope & broom::BroomSharingNoDestructorScope::operator= ( BroomSharingNoDestructorScope &&  other)
delete

◆ operator=() [2/2]

BroomSharingNoDestructorScope & broom::BroomSharingNoDestructorScope::operator= ( const BroomSharingNoDestructorScope other)
delete

The documentation for this struct was generated from the following file: