Hi all

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