1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Mark PerformUpdate as an instant handle method (doesn't really help with anything)

This commit is contained in:
Dean Herbert 2020-12-08 17:42:08 +09:00
parent 11a7057289
commit 345352be67

View File

@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace osu.Game.Online.RealtimeMultiplayer
{
@ -50,7 +51,7 @@ namespace osu.Game.Online.RealtimeMultiplayer
/// Perform an update on this room in a thread-safe manner.
/// </summary>
/// <param name="action">The action to perform.</param>
public void PerformUpdate(Action<MultiplayerRoom> action)
public void PerformUpdate([InstantHandle] Action<MultiplayerRoom> action)
{
lock (writeLock) action(this);
}