Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
weeeBox committed Dec 20, 2016
1 parent 0f5a93e commit 5d2b773
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project/Assets/LunarPlugin/Editor/Console/CAbstractConsole.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public AbstractConsole(int historySize)

internal void Add(ConsoleViewCellEntry entry)
{
if (ThreadUtils.IsUnityThread())
if (CThreadUtils.IsUnityThread())
{
Entries.Add(entry);
Delegate.OnConsoleEntryAdded(this, ref entry);
Expand Down
2 changes: 1 addition & 1 deletion Project/Assets/LunarPlugin/Editor/Core/CEditorApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private EditorApp()

TimerManager.ScheduleTimer(() =>
{
ThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread
CThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread
Log.Initialize(); // it's safe to initialize logging

EditorSceneKeyHandler.keyDownHandler += SceneKeyDownHandler;
Expand Down
2 changes: 1 addition & 1 deletion Project/Assets/LunarPlugin/Scripts/Core/CThreadUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace LunarPluginInternal
{
static class ThreadUtils
static class CThreadUtils
{
private static readonly object s_mutex = new object();
private static Thread s_mainThread;
Expand Down
2 changes: 1 addition & 1 deletion Test/Test/TestFixtureBase.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class TestFixtureBase

static TestFixtureBase()
{
ThreadUtils.SetMainThread();
CThreadUtils.SetMainThread();
}

protected virtual void RunSetUp()
Expand Down

0 comments on commit 5d2b773

Please sign in to comment.