Skip to content

Commit 2e1fe8a

Browse files
committed
fix: Change order of modifiers to be "public accessibility" then "static" for DispatchAsync
1 parent 869f10a commit 2e1fe8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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
//-------------------------------------------------------------------------
@@ -1958,7 +1958,7 @@ void IEOSCoroutineOwner.StartCoroutine(IEnumerator routine)
19581958
/// Enqueues an Action to be executed on the main thread.
19591959
/// </summary>
19601960
/// <param name="action">Action to execute.</param>
1961-
static public void DispatchAsync(Action action)
1961+
public static void DispatchAsync(Action action)
19621962
{
19631963
lock (s_enqueuedTasksLock)
19641964
{
@@ -1971,9 +1971,9 @@ static public void DispatchAsync(Action action)
19711971
}
19721972
}
19731973

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

0 commit comments

Comments
 (0)