example: move free function to anonymous namespace

This commit is contained in:
Tom 2020-08-01 14:19:03 +02:00
parent 467648269c
commit 85d3f93f51

View File

@ -8,6 +8,9 @@
#include <vector>
namespace {
void Worker(const sgnl::AtomicCondition<bool>& exit_condition)
{
while( !exit_condition.get() )
@ -18,6 +21,10 @@ void Worker(const sgnl::AtomicCondition<bool>& exit_condition)
}
}
}
int main()
{
sgnl::AtomicCondition<bool> exit_condition(false);