bricks: please gcc Werror=noexcept option
* bricks/brick-shmem: here.
This commit is contained in:
parent
44041efc51
commit
47c4f19e22
1 changed files with 3 additions and 3 deletions
|
|
@ -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(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue