mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 06:07:21 +08: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…
x
Reference in New Issue
Block a user