mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 02:57:51 +08:00
Add comment explaining use of lock
This commit is contained in:
parent
45d16fb916
commit
d2950105fb
@ -40,6 +40,7 @@ namespace osu.Game.Screens.Spectate
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private UserLookupCache userLookupCache { get; set; }
|
private UserLookupCache userLookupCache { get; set; }
|
||||||
|
|
||||||
|
// A lock is used to synchronise access to spectator/gameplay states, since this class is a screen which may become non-current and stop receiving updates at any point.
|
||||||
private readonly object stateLock = new object();
|
private readonly object stateLock = new object();
|
||||||
|
|
||||||
private readonly Dictionary<int, User> userMap = new Dictionary<int, User>();
|
private readonly Dictionary<int, User> userMap = new Dictionary<int, User>();
|
||||||
|
Loading…
Reference in New Issue
Block a user