mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
log more about jni thread mapping
This commit is contained in:
parent
1892d24317
commit
d2edbaff37
1 changed files with 5 additions and 2 deletions
|
@ -62,7 +62,8 @@ typedef struct _JNIGlobalState {
|
||||||
MPSLOT
|
MPSLOT
|
||||||
} JNIGlobalState;
|
} JNIGlobalState;
|
||||||
|
|
||||||
// #define LOG_MAPPING
|
#define LOG_MAPPING
|
||||||
|
// #define LOG_MAPPING_ALL
|
||||||
|
|
||||||
#define GAMEPTR_IS_OBJECT
|
#define GAMEPTR_IS_OBJECT
|
||||||
#ifdef GAMEPTR_IS_OBJECT
|
#ifdef GAMEPTR_IS_OBJECT
|
||||||
|
@ -79,7 +80,9 @@ countUsed(const EnvThreadInfo* ti)
|
||||||
for ( int ii = 0; ii < ti->nEntries; ++ii ) {
|
for ( int ii = 0; ii < ti->nEntries; ++ii ) {
|
||||||
EnvThreadEntry* entry = &ti->entries[ii];
|
EnvThreadEntry* entry = &ti->entries[ii];
|
||||||
if ( 0 != entry->owner ) {
|
if ( 0 != entry->owner ) {
|
||||||
|
# ifdef LOG_MAPPING_ALL
|
||||||
XP_LOGF( "%s(): ii=%d; owner: %x", __func__, ii, (unsigned int)entry->owner );
|
XP_LOGF( "%s(): ii=%d; owner: %x", __func__, ii, (unsigned int)entry->owner );
|
||||||
|
# endif
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +148,7 @@ map_thread( EnvThreadInfo* ti, JNIEnv* env )
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutex_unlock( &ti->mtxThreads );
|
pthread_mutex_unlock( &ti->mtxThreads );
|
||||||
}
|
} /* map_thread */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
map_init( MPFORMAL EnvThreadInfo* ti, JNIEnv* env )
|
map_init( MPFORMAL EnvThreadInfo* ti, JNIEnv* env )
|
||||||
|
|
Loading…
Reference in a new issue