Threading macros

Implementation of macros from https://github.com/vseloved/rutils/issues/9.