Skip to content

Commit 22f520f

Browse files
committed
fix: Change order of modifiers to be "public accessibility" then "static" for DispatchAsync
1 parent b498b57 commit 22f520f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

com.playeveryware.eos/Runtime/Core/EOSManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ enum EOSState
188188
/// Actions that need to be executed on the main thread.
189189
/// Lazy allocated in <see cref="DispatchAsync"/>.
190190
/// </summary>
191-
static private List<Action> s_enqueuedTasks;
191+
private static List<Action> s_enqueuedTasks;
192192

193193
/// <summary>
194194
/// Locak object used for <see cref="s_enqueuedTasks"/>, such that it can
195195
/// be executed thread-safe way.
196196
/// </summary>
197-
static private System.Object s_enqueuedTasksLock = new System.Object();
197+
private static System.Object s_enqueuedTasksLock = new System.Object();
198198
//private static List
199199

200200
//-------------------------------------------------------------------------
@@ -1908,7 +1908,7 @@ void IEOSCoroutineOwner.StartCoroutine(IEnumerator routine)
19081908
/// Enqueues an Action to be executed on the main thread.
19091909
/// </summary>
19101910
/// <param name="action">Action to execute.</param>
1911-
static public void DispatchAsync(Action action)
1911+
public static void DispatchAsync(Action action)
19121912
{
19131913
lock (s_enqueuedTasksLock)
19141914
{
@@ -1921,9 +1921,9 @@ static public void DispatchAsync(Action action)
19211921
}
19221922
}
19231923

1924-
static private void ExecuteQueuedMainThreadTasks()
1924+
private static void ExecuteQueuedMainThreadTasks()
19251925
{
1926-
// Lock the enqued tasks list, and hold refrence to the enqueued tasks.
1926+
// Lock the enqued tasks list, and hold reference to the enqueued tasks.
19271927
// This is done so that the foreach loop doesn't potentially go "forever"
19281928
// if a given action in the queue happens to generate a list of tasks that
19291929
// also generate a list of task. The s_enqueuedTasks list is also nulled out

0 commit comments

Comments
 (0)