SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2010 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 #include <saga/saga/adaptors/register_workitem.hpp> 00007 #include <saga/impl/runtime.hpp> 00008 #include <saga/impl/session.hpp> 00009 #include <saga/saga/version.hpp> 00010 00011 namespace saga { namespace adaptors 00012 { 00014 workitem_cookie_handle register_workitem(workitem_function f, 00015 time_type const& expire_at, saga::session const& s) 00016 { 00017 // disable the monitoring thread for the V1.5 release 00018 // #if SAGA_VERSION_FULL > 0x010600 00019 // return impl::runtime::get_impl(s)->register_workitem(f, expire_at); 00020 // #else 00021 return 1; 00022 // #endif 00023 } 00024 00026 workitem_cookie_handle register_workitem(workitem_function f, 00027 duration_type const& expire_from_now, saga::session const& s) 00028 { 00029 // disable the monitoring thread for the V1.5 release 00030 // #if SAGA_VERSION_FULL > 0x010600 00031 // return impl::runtime::get_impl(s)->register_workitem(f, expire_from_now); 00032 // #else 00033 return 1; 00034 // #endif 00035 } 00036 00038 void unregister_workitem(workitem_cookie_handle h, saga::session const& s) 00039 { 00040 // disable the monitoring thread for the V1.5 release 00041 // #if SAGA_VERSION_FULL > 0x010600 00042 // impl::runtime::get_impl(s)->unregister_workitem(h); 00043 // #endif 00044 } 00045 }} 00046