mirror of
https://github.com/ppy/osu
synced 2024-12-17 12:25:19 +00:00
Add more lengthy comment explaining cyclic avoidance
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
5e7993c35a
commit
249f0f9697
@ -292,7 +292,9 @@ namespace osu.Game.Database
|
||||
{
|
||||
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||
|
||||
// Get context outside of flag update to ensure beyond doubt this can't be cyclic.
|
||||
// Retrieve context outside of flag update to ensure that the context is constructed,
|
||||
// as attempting to access it inside the subscription if it's not constructed would lead to
|
||||
// cyclic invocations of the subscription callback.
|
||||
var realm = Context;
|
||||
|
||||
lock (contextLock)
|
||||
|
Loading…
Reference in New Issue
Block a user