Peter Holtwick
unread,Mar 22, 2011, 12:29:56 PM3/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
The call of
"pthread_mutex_lock( &m_Mutex )"
crashes, although
"pthread_mutexattr_init( &m_MutexAttr )",
"pthread_mutexattr_settype (&m_MutexAttr, PTHREAD_MUTEX_RECURSIVE_NP)"
and
"pthread_mutex_init(&m_Mutex, &m_MutexAttr )"
are done successfully before.
It's a standalone executable running on the emulator with Android 1.5.
This is for debugging purposes, it's a shared library at the end, and
as this, it doesn't crash.
The crash happens at the very start, callstack coming from "global
constructors" and "__static_initialization_and_destruction_0()".
Does an executable behave different than a library in terms of
initialization of statics? Is it not ok to use a mutex that early?
Peter