±
±è¿ë°Ç
my project has critical bug that TTS(text to speech) engine has two thread
one thread is socket thread that receives string from socket server and
other thread
is engine thread that processes the TTS(text to speech)
the received string is dynamically allocated (char * pRcvstr)
i think the bug occured when socket thread receives string buffer
while engine thread processes the other TTS,
because of two threads share one memory pointer
how to manager the resource that using two thread?
i thinked the criticalsection,
but this is useless overhead and has capability of other problem
i need a simple solution
one thread is socket thread that receives string from socket server and
other thread
is engine thread that processes the TTS(text to speech)
the received string is dynamically allocated (char * pRcvstr)
i think the bug occured when socket thread receives string buffer
while engine thread processes the other TTS,
because of two threads share one memory pointer
how to manager the resource that using two thread?
i thinked the criticalsection,
but this is useless overhead and has capability of other problem
i need a simple solution