Fork-join_none not working

In reply to cgales:

Thanks cgles for fixing the code format.
The code doesn’t compile. I’m trying to run two threads where thread#1 is decrementing the value of i which is initialized to 15 and thread#2 is running till i is >0.