Sample util - displayMutex - deadlock
Erik Olsson <[email protected]> Tue, 18 Feb 2003 11:26:20 +0100 (CET)
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm converting an application from the old sdk to the new one. My application hangs when calling SampleUtil_PrintEvent which makes ithread_mutex_lock( &display_mutex ) and then calls SampleUtil_Print, which also tries to do ithread_mutex_lock( &display_mutex ) and the thread gets locked. The sample code also calls SampleUtil_PrintEvent but doesn't hang. I can see in the debugger that when running the tv_device, the program steps through the lines ithread_mutex_lock( &display_mutex ) ... ... ithread_mutex_lock( &display_mutex ) ... ... without hanging the thread which I think it's very strange. Can anyone figure out what my problem is? Regards /Erik ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge