update API pthread