mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 14:40:24 +08:00
Mention GetForWrite() as another alternative to Context accesses
This commit is contained in:
@@ -48,7 +48,7 @@ namespace osu.Game.Database
|
||||
get
|
||||
{
|
||||
if (!ThreadSafety.IsUpdateThread)
|
||||
throw new InvalidOperationException($"Use {nameof(GetForRead)} when performing realm operations from a non-update thread");
|
||||
throw new InvalidOperationException($"Use {nameof(GetForRead)} or {nameof(GetForWrite)} when performing realm operations from a non-update thread");
|
||||
|
||||
lock (updateContextLock)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user