ping thread removed; mutex macros