mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Mention GetForWrite()
as another alternative to Context
accesses
This commit is contained in:
parent
b89521314f
commit
3291f15dcc
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user