...
This compliant solution uses an object of type atomic_flagbool
to indicate when the child thread should terminate its loop:
...
...
This compliant solution uses an object of type atomic_flagbool
to indicate when the child thread should terminate its loop:
...