example: move free function to anonymous namespace
This commit is contained in:
parent
467648269c
commit
85d3f93f51
@ -8,6 +8,9 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
|
||||||
void Worker(const sgnl::AtomicCondition<bool>& exit_condition)
|
void Worker(const sgnl::AtomicCondition<bool>& exit_condition)
|
||||||
{
|
{
|
||||||
while( !exit_condition.get() )
|
while( !exit_condition.get() )
|
||||||
@ -18,6 +21,10 @@ void Worker(const sgnl::AtomicCondition<bool>& exit_condition)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
sgnl::AtomicCondition<bool> exit_condition(false);
|
sgnl::AtomicCondition<bool> exit_condition(false);
|
||||||
|
Reference in New Issue
Block a user