pthread Rapper for C