mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 04:35:52 +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
|
@ -41,7 +41,7 @@ namespace HISP.Player
|
|||
}
|
||||
|
||||
|
||||
private List<AwardEntry> awardsEarned;
|
||||
private ThreadSafeList<AwardEntry> awardsEarned;
|
||||
private User baseUser;
|
||||
public AwardEntry[] AwardsEarned
|
||||
{
|
||||
|
@ -84,7 +84,7 @@ namespace HISP.Player
|
|||
{
|
||||
baseUser = user;
|
||||
int[] awards = Database.GetAwards(user.Id);
|
||||
awardsEarned = new List<AwardEntry>();
|
||||
awardsEarned = new ThreadSafeList<AwardEntry>();
|
||||
|
||||
foreach (int awardid in awards)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue