SAGA Adaptor CPI v.1.0
manage_threads.hpp
Go to the documentation of this file.
00001 //  Copyright (c) 2005-2009 Hartmut Kaiser
00002 // 
00003 //  Distributed under the Boost Software License, Version 1.0. (See accompanying 
00004 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00005 
00006 #if !defined(SAGA_MANAGE_THREADS_JUL_14_2007_0828PM)
00007 #define SAGA_MANAGE_THREADS_JUL_14_2007_0828PM
00008 
00009 #include <saga/saga/util.hpp>
00010 
00011 #include <boost/thread.hpp>
00012 
00014 namespace saga { namespace adaptors 
00015 {
00017     //  saga supports managing external threads, which essentially means it 
00018     //  will join with all managed threads before the main thread terminates
00019     SAGA_EXPORT void add_managed_thread (saga::session s, boost::thread* thrd);
00020     SAGA_EXPORT void remove_managed_thread (saga::session s, boost::thread* thrd);
00021 
00023 }}
00024 
00025 #endif
00026 
00027 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines