Code cleanup.

This commit is contained in:
2023-07-14 23:49:27 +08:00
parent b057ea8074
commit 8da54093aa
5 changed files with 7 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ namespace Cryville.Common.Network.Http11 {
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
public virtual void Dispose(bool disposing) {

View File

@@ -30,6 +30,7 @@ namespace Cryville.Common.Network.Http11 {
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
public virtual void Dispose(bool disposing) {

View File

@@ -30,6 +30,7 @@ namespace Cryville.Common.Network {
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
public virtual void Dispose(bool disposing) {

View File

@@ -6,6 +6,9 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
using System.Runtime.InteropServices;
#endif
using System.Text;
using System.Threading;
using UnityEngine;

View File

@@ -13,7 +13,7 @@ namespace Cryville.Input.Unity.Android {
readonly Thread _thread;
private AndroidInputPoller() {
_thread = new Thread(ThreadLogic);
_thread = new Thread(ThreadLogic) { IsBackground = true, Priority = ThreadPriority.AboveNormal };
_thread.Start();
}