Client example: main loop handling fixes 07/276607/2
authorMichal Bloch <m.bloch@samsung.com>
Tue, 21 Jun 2022 16:09:04 +0000 (18:09 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 22 Jun 2022 13:05:37 +0000 (15:05 +0200)
commita253489a87cd6995e71ef2b3f71907fbd0a5c76a
treec9858f7c5616ecf7eef4bce1172ffcd1bfd09cf3
parent7d5b43916a520b5249329ad7b3e4f1216f2e1ff5
Client example: main loop handling fixes

 * use a GThread instead of std::thread since everything
   else uses glib facilities instead of C++ ones

 * extract the wait at the end into its own function

 * fix the main loop not being unref'd

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