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;
using System.Collections.Generic; using System.Collections.Generic;
using JetBrains.Annotations;
namespace osu.Game.Online.RealtimeMultiplayer 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. /// Perform an update on this room in a thread-safe manner.
/// </summary> /// </summary>
/// <param name="action">The action to perform.</param> /// <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); lock (writeLock) action(this);
} }