1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 17:00:17 +08:00

Mention GetForWrite() as another alternative to Context accesses

This commit is contained in:
Bartłomiej Dach
2021-07-04 12:08:15 +02:00
Unverified
parent b89521314f
commit 3291f15dcc
+1 -1
View File
@@ -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)
{