mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-07 03:21:27 +12:00
Add Thread-Safe Lists, and make all list access thread-safe
This commit is contained in:
parent
900fe0d48a
commit
40c34ac030
24 changed files with 111 additions and 44 deletions
|
@ -7,7 +7,7 @@ namespace HISP.Player
|
|||
public class Friends
|
||||
{
|
||||
private User baseUser;
|
||||
private List<int> list;
|
||||
private ThreadSafeList<int> list;
|
||||
public int[] List
|
||||
{
|
||||
get
|
||||
|
@ -36,7 +36,7 @@ namespace HISP.Player
|
|||
public Friends(User user)
|
||||
{
|
||||
baseUser = user;
|
||||
list = new List<int>();
|
||||
list = new ThreadSafeList<int>();
|
||||
|
||||
int[] friends = Database.GetBuddyList(user.Id);
|
||||
foreach(int friendId in friends)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue