mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Mark PerformUpdate as an instant handle method (doesn't really help with anything)
This commit is contained in:
parent
11a7057289
commit
345352be67
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user