Add Thread-Safe Lists, and make all list access thread-safe

This commit is contained in:
Li 2022-08-31 20:31:07 +12:00
parent 900fe0d48a
commit 40c34ac030
24 changed files with 111 additions and 44 deletions

View file

@ -8,7 +8,7 @@ namespace HISP.Game
public class Multiroom
{
private static List<Multiroom> multirooms = new List<Multiroom>();
private List<User> joinedUsers = new List<User>();
private ThreadSafeList<User> joinedUsers = new ThreadSafeList<User>();
public int x;
public int y;