Re: Threads
Greg Wright <[email protected]>
| Newsgroups | gmane.comp.multimedia.helix.devel |
|---|---|
| Message-ID | <[email protected]> |
Mahmoud Hammoud wrote: > Dear all, > > I would like to create my own additional thread to do some things within > rtspclnt.cpp. I tried to add a HXThread * data member m_pMyThread to the > RTSPClientProtocol class and then at the point where I want to start the > thread, I am calling HXThread::MakeThread(m_pMyThread) and then > m_pMyThread->CreateThread(MyRoutine, this). This result in an HX_ASSERT > error which eventually leads the client to crash. I guess I am missing > something here (what please?). Should MyRoutine have a special > structure? Can someone give me a brief step by step guide on how to > create, start and manage a thread? The "Threading Model" document on the > Helix Community web pages provides only an abstract overview, I would > really appreciate your help. The best source of information is other parts of the code base the use threads. It would help to know what your assert is. Also, be aware that you are not free to call into the engine on any given thread you want, very little of it is actually thread safe that way. --greg. > > Best Regards, > > Mahmoud Hammoud _______________________________________________ Helix-client-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev