Added comments to sync.h to make it easier to understand the macros