add threading macro example