SvdFeature_Source_Code/apex-utils/apex_buffer_loader.h
/*! \brief destroy the buffer iterator, will deallocate the buffer */
\brief destroy the buffer iterator, will deallocate the buffer
\ brief destroy the buffer iterator will deallocate the buffer
inline void destroy( void ){
            this->destroy_signal = true;
            loading_need.post();
            loader_thread.join();
            loading_need.destroy();
            loading_end .destroy();
            for( size_t i = 0; i < bufA.size(); i ++ ){
                factory.free_space( bufA[i] );
            }
            for( size_t i = 0; i < bufB.size(); i ++ ){
                factory.free_space( bufB[i] );
            }
            bufA.clear(); bufB.clear(); 
            factory.destroy();    
            this->init_end = false;        
        }
inline void destroy ( void ) { this -> destroy_signal = true ; loading_need . post ( ) ; loader_thread . join ( ) ; loading_need . destroy ( ) ; loading_end . destroy ( ) ; for ( size_t i = 0 ; i < bufA . size ( ) ; i ++ ) { factory . free_space ( bufA [ i ] ) ; } for ( size_t i = 0 ; i < bufB . size ( ) ; i ++ ) { factory . free_space ( bufB [ i ] ) ; } bufA . clear ( ) ; bufB . clear ( ) ; factory . destroy ( ) ; this -> init_end = false ; }
\brief destroy the buffer iterator, will deallocate the buffer
\ brief destroy the buffer iterator will deallocate the buffer
// wait until the signal is consumed