From 47c4f19e2242a98713e7d88b5dd12c76dd02f019 Mon Sep 17 00:00:00 2001 From: Etienne Renault Date: Thu, 16 Mar 2017 12:03:53 +0100 Subject: [PATCH] bricks: please gcc Werror=noexcept option * bricks/brick-shmem: here. --- bricks/brick-shmem | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bricks/brick-shmem b/bricks/brick-shmem index 8cf397584..fdec36016 100644 --- a/bricks/brick-shmem +++ b/bricks/brick-shmem @@ -85,7 +85,7 @@ struct Thread : T start(); } - virtual void start() + virtual void start() noexcept { _thread.reset( new std::thread( [this]() { this->main(); } ) ); } @@ -174,7 +174,7 @@ struct AsyncLoop : Thread< LoopWrapper< T > > stop(); /* call the correct stop(), with interrupt() */ } - void start() override + void start() noexcept override { this->_interrupted.store( false, std::memory_order_relaxed ); Super::start(); @@ -209,7 +209,7 @@ struct ThreadSet : std::vector< Thread< T > > template< typename... 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(); } };