add a get_ipc method to Thread