Adding volatile and asserts in threading.h
Simplifying of1x_statistics_pp.h
Fixing test