rename conlog gui file and set the logbuffer-consumed flag sooner

This commit is contained in:
Peter Tissen 2014-06-27 06:01:40 +02:00
parent 21da317453
commit 1ad4380fab
3 changed files with 6 additions and 6 deletions

View File

@ -59,6 +59,7 @@ struct wxWriter : Log::LogListener
std::vector<char> local_messages(size); std::vector<char> local_messages(size);
messages.popN(&local_messages.front(), size); messages.popN(&local_messages.front(), size);
messages.unlockGet(); messages.unlockGet();
newLog = false;
u32 cursor = 0; u32 cursor = 0;
u32 removed = 0; u32 removed = 0;
@ -95,7 +96,6 @@ struct wxWriter : Log::LogListener
m_log->Remove(0, m_log->GetLastPosition() - (GUI_BUFFER_MAX_SIZE/2)); m_log->Remove(0, m_log->GetLastPosition() - (GUI_BUFFER_MAX_SIZE/2));
} }
} }
newLog = false;
} }
//put message into the log buffer //put message into the log buffer
@ -114,7 +114,7 @@ struct wxWriter : Log::LogListener
std::vector<char> temp_buffer(size); std::vector<char> temp_buffer(size);
msg.serialize(temp_buffer.data()); msg.serialize(temp_buffer.data());
messages.pushRange(temp_buffer.begin(), temp_buffer.end()); messages.pushRange(temp_buffer.begin(), temp_buffer.end());
if (!newLog.load(std::memory_order_relaxed)) if (!newLog.load())
{ {
newLog = true; newLog = true;
m_log->GetEventHandler()->QueueEvent(new wxCommandEvent(EVT_LOG_COMMAND)); m_log->GetEventHandler()->QueueEvent(new wxCommandEvent(EVT_LOG_COMMAND));

View File

@ -164,7 +164,7 @@
<ClCompile Include="..\Utilities\Thread.cpp" /> <ClCompile Include="..\Utilities\Thread.cpp" />
<ClCompile Include="Emu\DbgCommand.cpp" /> <ClCompile Include="Emu\DbgCommand.cpp" />
<ClCompile Include="Gui\CompilerELF.cpp" /> <ClCompile Include="Gui\CompilerELF.cpp" />
<ClCompile Include="Gui\ConLog.cpp" /> <ClCompile Include="Gui\ConLogFrame.cpp" />
<ClCompile Include="Gui\Debugger.cpp" /> <ClCompile Include="Gui\Debugger.cpp" />
<ClCompile Include="Gui\DisAsmFrame.cpp" /> <ClCompile Include="Gui\DisAsmFrame.cpp" />
<ClCompile Include="Gui\GameViewer.cpp" /> <ClCompile Include="Gui\GameViewer.cpp" />

View File

@ -24,9 +24,6 @@
<ClCompile Include="Gui\MainFrame.cpp"> <ClCompile Include="Gui\MainFrame.cpp">
<Filter>Gui</Filter> <Filter>Gui</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="Gui\ConLog.cpp">
<Filter>Gui</Filter>
</ClCompile>
<ClCompile Include="Gui\MemoryViewer.cpp"> <ClCompile Include="Gui\MemoryViewer.cpp">
<Filter>Gui</Filter> <Filter>Gui</Filter>
</ClCompile> </ClCompile>
@ -102,6 +99,9 @@
<ClCompile Include="Emu\DbgCommand.cpp"> <ClCompile Include="Emu\DbgCommand.cpp">
<Filter>Emu</Filter> <Filter>Emu</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="Gui\ConLogFrame.cpp">
<Filter>Gui</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="rpcs3.rc" /> <ResourceCompile Include="rpcs3.rc" />