update pthread API