mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
add new param JNIThread requires
This commit is contained in:
parent
de7c29dcc7
commit
a6b3cb8cbe
1 changed files with 18 additions and 1 deletions
|
@ -189,6 +189,23 @@ public class BoardActivity extends XWActivity
|
||||||
return delivered;
|
return delivered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean feedMessage( long rowid, byte[] msg )
|
||||||
|
{
|
||||||
|
boolean delivered = false;
|
||||||
|
synchronized( s_thisLocker ) {
|
||||||
|
if ( null != s_this ) {
|
||||||
|
Assert.assertNotNull( s_this.m_gi );
|
||||||
|
Assert.assertNotNull( s_this.m_gameLock );
|
||||||
|
Assert.assertNotNull( s_this.m_jniThread );
|
||||||
|
if ( rowid == s_this.m_rowid ) {
|
||||||
|
s_this.m_jniThread.handle( JNICmd.CMD_RECEIVE, msg, null );
|
||||||
|
delivered = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return delivered;
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean feedMessages( long rowid, byte[][] msgs )
|
public static boolean feedMessages( long rowid, byte[][] msgs )
|
||||||
{
|
{
|
||||||
boolean delivered = false;
|
boolean delivered = false;
|
||||||
|
@ -1686,7 +1703,7 @@ public class BoardActivity extends XWActivity
|
||||||
|
|
||||||
if ( m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
if ( m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
||||||
m_xport = new CommsTransport( m_jniGamePtr, this, this,
|
m_xport = new CommsTransport( m_jniGamePtr, this, this,
|
||||||
m_gi.serverRole );
|
m_rowid, m_gi.serverRole );
|
||||||
}
|
}
|
||||||
|
|
||||||
CommonPrefs cp = CommonPrefs.get( this );
|
CommonPrefs cp = CommonPrefs.get( this );
|
||||||
|
|
Loading…
Reference in a new issue