implemented the SyncPrimitive and derived classes