Commit 586a1575 authored by Etienne Renault's avatar Etienne Renault
Browse files

bricks: please gcc Werror=noexcept option

* bricks/brick-shmem: here.
parent ba7d4021
...@@ -85,7 +85,7 @@ struct Thread : T ...@@ -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 > > ...@@ -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 > > ...@@ -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(); }
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment