00001 // Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) 00002 // Copyright (c) 2007 Ole Weidner (oweidner@cct.lsu.edu) 00003 // 00004 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00006 00007 #ifndef SAGA_TASK_BASE_HPP 00008 #define SAGA_TASK_BASE_HPP 00009 00011 namespace saga 00012 { 00017 struct task_base 00018 { 00036 enum state 00037 { 00038 Unknown = -1, 00039 New = 1, 00040 Running = 2, 00041 Done = 3, 00042 Canceled = 4, 00043 Failed = 5 00044 }; 00045 00047 00048 // tagging definitions 00049 struct Sync {}; 00050 struct Async {}; typedef Async ASync; 00051 struct Task {}; 00053 }; 00054 00056 } // namespace saga 00057 00058 #endif // SAGA_TASK_BASE_HPP 00059