Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
586a1575
Commit
586a1575
authored
Mar 16, 2017
by
Etienne Renault
Browse files
bricks: please gcc Werror=noexcept option
* bricks/brick-shmem: here.
parent
ba7d4021
Changes
1
Hide whitespace changes
Inline
Side-by-side
bricks/brick-shmem
View file @
586a1575
...
...
@@ -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
();
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment