From 735fefae8bdfa3845493d15e87a7c31a454f8662 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 30 Oct 2010 04:58:50 +0300 Subject: modified: core/modules.cpp --- core/modules.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'core/modules.cpp') diff --git a/core/modules.cpp b/core/modules.cpp index 5b5186b..0246b40 100644 --- a/core/modules.cpp +++ b/core/modules.cpp @@ -58,8 +58,13 @@ void run_plugins() std::list::iterator end = plugins.end(); for(std::list::iterator i = plugins.begin(); i != end; ++i) { - (*i)->get_exported_functions()->Load(&pluglink); - (*i)->get_exported_functions()->OnModulesLoaded(); + boost::thread *thr; + thr = new boost::thread(boost::bind((*i)->get_exported_functions()->Load, &pluglink)); + thr->timed_join(boost::posix_time::seconds(10)); + delete thr; + thr = new boost::thread(boost::bind((*i)->get_exported_functions()->OnModulesLoaded)); + thr->timed_join(boost::posix_time::seconds(15)); + delete thr; } } } -- cgit v1.2.3