bricks: please gcc Werror=noexcept option

* bricks/brick-shmem: here.
This commit is contained in:
Etienne Renault 2017-03-16 12:03:53 +01:00
parent 44041efc51
commit 47c4f19e22

View file

@ -85,7 +85,7 @@ struct Thread : T
start(); start();
} }
virtual void start() virtual void start() noexcept
{ {
_thread.reset( new std::thread( [this]() { this->main(); } ) ); _thread.reset( new std::thread( [this]() { this->main(); } ) );
} }
@ -174,7 +174,7 @@ struct AsyncLoop : Thread< LoopWrapper< T > >
stop(); /* call the correct stop(), with interrupt() */ stop(); /* call the correct stop(), with interrupt() */
} }
void start() override void start() noexcept override
{ {
this->_interrupted.store( false, std::memory_order_relaxed ); this->_interrupted.store( false, std::memory_order_relaxed );
Super::start(); Super::start();
@ -209,7 +209,7 @@ struct ThreadSet : std::vector< Thread< T > >
template< typename... Args > template< typename... Args >
ThreadSet( Args&&... args ) : std::vector< Thread< T > >( std::forward< Args >( args )... ) {} ThreadSet( Args&&... args ) : std::vector< Thread< T > >( std::forward< Args >( args )... ) {}
void start() { for ( auto &t : *this ) t.start(); } void start() noexcept { for ( auto &t : *this ) t.start(); }
void join() { for ( auto &t : *this ) t.join(); } void join() { for ( auto &t : *this ) t.join(); }
}; };