From: Josep Pujol Date: 2010-02-06T05:28:51+09:00 Subject: Re: embedding ruby Thank you. I'll try it. I plan to use ruby in several threads (it's a gui application and each menu can trigger some ruby code). Is it safe enough to use a mutex or I must initialize something (the stack?) for each thread? Regards, Josep. Bill Kelly wrote: > > We embed ruby 1.8.x in a C++ app on Windows / OS X. > > In our case, we run Ruby in a separate thread. Only trick was that > the stack size of threads other than the main thread may be small by > default. And we use boost threads. So I had to modify boost to > create the thread with a large enough stack: > [...] > It works out pretty well. > > I haven't tried embedding ruby 1.9.x yet. > > > Regards, > > Bill -- Posted via http://www.ruby-forum.com/.