Mention GetForWrite() as another alternative to Context accesses

This commit is contained in:
Bartłomiej Dach 2021-07-04 12:08:15 +02:00
parent b89521314f
commit 3291f15dcc

View File

@ -48,7 +48,7 @@ namespace osu.Game.Database
get get
{ {
if (!ThreadSafety.IsUpdateThread) 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) lock (updateContextLock)
{ {