Some bugfixes (scoped_function), added q::static_atomic which is a helper for statically allocated "global" data, safely and quickly. Changed q::queue internal default variables into using the static_atomic feature, which should speed up. Added proper q initialization in unit tests. Added tests for q::all().