summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-11-22 07:37:00 +0000
committernakeee <nakeee@gmail.com>2009-11-22 07:37:00 +0000
commit354078def66ee9c2448da4480464d0f3cb07c8bf (patch)
tree9c12a5e4e9b6f36ece9abde7f09f8af5d708c43c /Source/Core
parent19d7bb2c844149a434b3ee573a84a267c59b140b (diff)
make wxpostevent into addpendingevent hoping to solve some thread issue on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4600 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/Frame.cpp6
-rw-r--r--Source/Core/DolphinWX/Src/Main.cpp24
2 files changed, 15 insertions, 15 deletions
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp
index cb33c4557c..fa1020145d 100644
--- a/Source/Core/DolphinWX/Src/Frame.cpp
+++ b/Source/Core/DolphinWX/Src/Frame.cpp
@@ -524,18 +524,18 @@ void CFrame::PostEvent(wxCommandEvent& event)
)
{
event.StopPropagation();
- wxPostEvent(g_pCodeWindow, event);
+ g_pCodeWindow->AddPendingEvent(event);
}
else
event.Skip();
}
void CFrame::PostMenuEvent(wxMenuEvent& event)
{
- if (g_pCodeWindow) wxPostEvent(g_pCodeWindow, event);
+ if (g_pCodeWindow) g_pCodeWindow->AddPendingEvent(event);
}
void CFrame::PostUpdateUIEvent(wxUpdateUIEvent& event)
{
- if (g_pCodeWindow) wxPostEvent(g_pCodeWindow, event);
+ if (g_pCodeWindow) g_pCodeWindow->AddPendingEvent(event);
}
void CFrame::OnResize(wxSizeEvent& event)
diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp
index 3f12670348..b1c11f2784 100644
--- a/Source/Core/DolphinWX/Src/Main.cpp
+++ b/Source/Core/DolphinWX/Src/Main.cpp
@@ -510,11 +510,11 @@ void Host_Message(int Id)
void Host_NotifyMapLoaded()
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_NOTIFYMAPLOADED);
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
if (main_frame->g_pCodeWindow)
{
- wxPostEvent(main_frame->g_pCodeWindow, event);
+ main_frame->g_pCodeWindow->AddPendingEvent(event);
}
}
@@ -522,11 +522,11 @@ void Host_NotifyMapLoaded()
void Host_UpdateLogDisplay()
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATELOGDISPLAY);
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
if (main_frame->g_pCodeWindow)
{
- wxPostEvent(main_frame->g_pCodeWindow, event);
+ main_frame->g_pCodeWindow->AddPendingEvent(event);
}
}
@@ -534,11 +534,11 @@ void Host_UpdateLogDisplay()
void Host_UpdateDisasmDialog()
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEDISASMDIALOG);
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
if (main_frame->g_pCodeWindow)
{
- wxPostEvent(main_frame->g_pCodeWindow, event);
+ main_frame->g_pCodeWindow->AddPendingEvent(event);
}
}
@@ -551,22 +551,22 @@ void Host_ShowJitResults(unsigned int address)
void Host_UpdateMainFrame()
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEGUI);
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
if (main_frame->g_pCodeWindow)
{
- wxPostEvent(main_frame->g_pCodeWindow, event);
+ main_frame->g_pCodeWindow->AddPendingEvent(event);
}
}
void Host_UpdateBreakPointView()
{
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEBREAKPOINTS);
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
if (main_frame->g_pCodeWindow)
{
- wxPostEvent(main_frame->g_pCodeWindow, event);
+ main_frame->g_pCodeWindow->AddPendingEvent(event);
}
}
@@ -643,7 +643,7 @@ void Host_UpdateStatusBar(const char* _pText, int Field)
// Post message
// TODO : this has been said to cause hang (??) how is that even possible ? :d
event.StopPropagation();
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
// Process the event before continue
wxGetApp().ProcessPendingEvents();
}
@@ -670,6 +670,6 @@ void Host_SetWiiMoteConnectionState(int _State)
event.SetInt(1);
#endif
- wxPostEvent(main_frame, event);
+ main_frame->AddPendingEvent(event);
}
#endif // HAVE_WX