Hey there.
I started working with PThreads recently and I have this one question. In my routine function, which is written in C++, should I call pthread_exit? I'm not sure about this since I heard someone mention that it isn't necessary in C++ code.
For example:
Code:
void* SomeFunction(void *data) {
// do some stuff here
// ...
// do I need to call this?
pthread_exit(NULL);
}
Any ideas? Thanks in advance.