threading macro example