[2.15.0] 优化子线程切主线程操作
This commit is contained in:
@@ -219,12 +219,12 @@ internal object GmePoller {
|
||||
if (ITMGContext.GetInstance(null) != null) {
|
||||
ITMGContext.GetInstance(null).Poll()
|
||||
}
|
||||
handler.postDelayed(this, 30)
|
||||
handler.postDelayed(this, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
internal fun start() {
|
||||
handler.postDelayed(poll, 30)
|
||||
handler.postDelayed(poll, 2000)
|
||||
}
|
||||
|
||||
internal fun stop() {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class ObjectHashCodeUtils {
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
int hashCode = System.identityHashCode(obj);
|
||||
int hashCode = - System.identityHashCode(obj);
|
||||
hashCodes.put(name, hashCode);
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user