Client example: cleanup globals 05/276605/2
authorMichal Bloch <m.bloch@samsung.com>
Tue, 21 Jun 2022 14:54:59 +0000 (16:54 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 22 Jun 2022 13:05:37 +0000 (15:05 +0200)
commit4cc7d468764ee3352a34733dcb564c30cfec3063
tree7ceac4483cd4ffeaee5541c935f44bb0c6577789
parent9de7da59f02733dfa265270f55edb590a59c5308
Client example: cleanup globals

 * the loop variable can be local.

 * it is safe to initialize an atomic variable
   non-atomically as long as there's only 1 thread.

 * make global constants into constexpr vars,
   as opposed to regular const vars or macros.

Change-Id: I006831917517db7e9fe0aed4a78aefccae1f2c0b
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
clientExample/app/main.cpp