Results 1 to 1 of 1
Thread: Kill DETACHED Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2012
Kill DETACHED Thread
I am trying to make an application for Android regarding Audio Streaming. I have created a thread which is a detached one and which keeps on downloading data packets from the network and the main thread plays the data packets.
The problem lies in the fact that I need to "kill" the thread once there happens any error in initialization. In that case I have tried to cancel the detached thread because I found no other way to do it using pthread_cancel() function but in order to compile it for Android platform I need to compile in Android NDK and it says "PTHREAD_CANCEL_ENABLE" parameter is not known !! Please help in this issue