hi, I am writing a program in c that requires my main function to ask a posix thread to cancel after a certain timeout.
trouble is, pthread_cancel fails if the thread has already closed.
how would one go about procuring the status of a posix thread, given a pthread_t object?
I've been working on this for days and I've finally narrowed it down to this problem, and google is no help
TIA