aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-08-19 10:08:56 +0200
committerDan Gudmundsson <[email protected]>2016-08-19 10:08:56 +0200
commitb55872ff87a46d7f8eb3d8142731b196df20e500 (patch)
tree1954af395978b510decc527f0f5543a4e45f223f
parent7b1cda1f97cd3ec91e7111b22aeffa3b5a6812f1 (diff)
parent23e8642fe9b2cf8ae77f8198cd332167421ff667 (diff)
downloadotp-b55872ff87a46d7f8eb3d8142731b196df20e500.tar.gz
otp-b55872ff87a46d7f8eb3d8142731b196df20e500.tar.bz2
otp-b55872ff87a46d7f8eb3d8142731b196df20e500.zip
Merge branch 'dgud/wx/increase_wx_stacksize' into maint
* dgud/wx/increase_wx_stacksize: Request a larger stacksize for wx thread
-rw-r--r--lib/wx/c_src/wxe_main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_main.cpp b/lib/wx/c_src/wxe_main.cpp
index 6fcde42eb5..c7565e33bd 100644
--- a/lib/wx/c_src/wxe_main.cpp
+++ b/lib/wx/c_src/wxe_main.cpp
@@ -67,6 +67,7 @@ int load_native_gui()
int start_native_gui(wxe_data *sd)
{
int res;
+ ErlDrvThreadOpts *opts = NULL;
wxe_status_m = erl_drv_mutex_create((char *) "wxe_status_m");
wxe_status_c = erl_drv_cond_create((char *)"wxe_status_c");
@@ -78,8 +79,11 @@ int start_native_gui(wxe_data *sd)
res = erl_drv_steal_main_thread((char *)"wxwidgets",
&wxe_thread,wxe_main_loop,(void *) sd->pdl,NULL);
#else
+ opts = erl_drv_thread_opts_create((char *)"wx thread");
+ opts->suggested_stack_size = 8192;
res = erl_drv_thread_create((char *)"wxwidgets",
- &wxe_thread,wxe_main_loop,(void *) sd->pdl,NULL);
+ &wxe_thread,wxe_main_loop,(void *) sd->pdl,opts);
+ erl_drv_thread_opts_destroy(opts);
#endif
if(res == 0) {
erl_drv_mutex_lock(wxe_status_m);