|
From: Yuan X. <xuy...@gm...> - 2007-03-16 01:37:08
|
Hi,
> You could use a recursive mutex to avoid this. This kind of mutex allows
> the owning thread to lock it repeatedly without deadlocking. The boost
> library contains a boost/thread/recursive_mutex.hpp file for this purpose.
I have tried the recursive mutex,
but the ruby still can not be called in the new thread ;-(
I'll do more try.
--
Best wishes!
Xu Yuan
School of Automation
Southeast University, Nanjing, China
mail: xuy...@gm...
xy...@ya...
web: http://xuyuan.cn.googlepages.com
--------------------------------------------------
|