aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/wxe_server.erl
AgeCommit message (Collapse)Author
2018-06-18Update copyright yearHenrik Nord
2018-02-06wx: Do not call erlang:get_stacktrace()Hans Bolinder
2016-03-15update copyright-yearHenrik Nord
2016-03-01wx: Wait before throwing away early callbacks to wx_objectsDan Gudmundsson
If synced callbacks arrive early before the return value from init had been synced to proc_lib. The callbacks where ignored. Added a short timeout to avoid the scheduling raise but we don't want block the wxe_server in case of deadlock in init, so sleep for a short while and check again, and drop the callback when init takes to long.
2015-12-01wx: Remove call to disconnect_impl from serverDan Gudmundsson
The server might wait for the result of a call to disconnect_impl which can now be delayed, that might cause a callback to never be invoked and thus hang the driver thread. To avoid that dispatch the disconnect_impl call from user process instead of server.
2015-07-07wx: Add event callback fastpathDan Gudmundsson
Avoids spawn but can deadlock
2015-06-18Change license text to APLv2Bruce Yinhe
2015-01-14wx: Fix connect when terminatingDan Gudmundsson
The ddbe8a821ad commit was embarrassingly broken.
2014-12-19wx: Do not crash server when going downDan Gudmundsson
If a connect request was made during the takedown of wx it would crash.
2014-03-26wx: Send destroy message directDan Gudmundsson
Messages was routed via the wxe_server process, which caused process to never get the message.
2014-02-13wx: Rewrite eventhandling againDan Gudmundsson
Remove the extra wxEvtListener that only caused confusion, now everything is automatically cleaned up by the destructors and event sent to erlang when it becomes delete for all cases.
2013-11-14wx: Fix crash in wxe_server cleanupDan Gudmundsson
Do not use disconnect event listener when we are exiting the port, it may interfere with window destructions and cause a crash.
2013-10-30wx: Fix cleanup of event handlersDan Gudmundsson
Event handlers was not removed after objects/process had been delete/died, which causes memory leakage and that fun's was kept in the wx_server process. Code that might be purged and the server died.
2013-01-25Update copyright yearsBjörn-Egil Dahlberg
2012-11-19Enable silent start of wxHåkan Mattsson
Add {silent_start, boolean()} option to wx:new/1 in order to be able to suppress error messages during startup of wx.
2011-12-06[wx] Avoid deadlock in handle_sync_eventDan Gudmundsson
Avoid sending cb messages to the wx_object, since it may deadlock. Instead send it to the wxe_server which reads the state from the wx_object's process_dictionary. Ugly but it's the only way I can avoid the deadlock.
2011-07-14Handle overloading callbacks the same as eventsDan Gudmundsson
Previously other process wx calls where allowed to execute in the callback code, but that lead to a deadlock if for example a dialog was created.
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP