7 Aug 2012 03:18
[E-devel] Possible Unmatched LKL and LKU in _ecore_thread_shutdown
Brian Wang <brian.wang.0721 <at> gmail.com>
2012-08-07 01:18:47 GMT
2012-08-07 01:18:47 GMT
Hello all, In ecore_thread.c:_ecore_thread_shutdown(), if there is still some _ecore_running_job, ecore_thread_cancel() will be called while _ecore_pending_job_threads_mutex is being held. In ecore_thread_cancel(), it will try to acquire the same mutex, causing _ecore_thread_shutdown() to freeze. That's how I read the code while I was trying to debug why my app does not shutdown completely (there is a thread running, without being cancelled before calling elm_exit()). I do not know how to fix it other than moving LKU before calling ecore_thread_cancel; however, I do not know if it's safe to do or not. Thanks in advance. brian -- -- brian ------------------ Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe(Continue reading)
RSS Feed