remove pthread event