From 85d3f93f518f7369288a9fe94efe39d7d7316f07 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 1 Aug 2020 14:19:03 +0200 Subject: [PATCH] example: move free function to anonymous namespace --- example/example.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/example.cpp b/example/example.cpp index 9a6c27e..01c1611 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -8,6 +8,9 @@ #include +namespace { + + void Worker(const sgnl::AtomicCondition& exit_condition) { while( !exit_condition.get() ) @@ -18,6 +21,10 @@ void Worker(const sgnl::AtomicCondition& exit_condition) } } + +} + + int main() { sgnl::AtomicCondition exit_condition(false);