Resource.hh

00001 //********************************************************************
00002 //*** ResourcePool/TaskRunner/Resource.hh
00003 //*** Copyright (c) 2003-2009 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: Resource.hh,v 1.9 2009-03-02 14:16:45 mws Exp $
00005 //********************************************************************
00006 
00007 #ifndef RESOURCEPOOL_TASKRUNNER_RESOURCE_HH
00008 #define RESOURCEPOOL_TASKRUNNER_RESOURCE_HH
00009 
00010 #ifndef INCLUDED_TASKRUNNER_HH
00011 #include "Thread/TaskRunner.hh"
00012 #endif
00013 
00014 namespace fatalmind {
00015 
00016 namespace TaskRunnerPoolInternals {
00017 
00018 class Resource: public fatalmind::TaskRunner {
00019     public:
00020         Resource();
00021         ~Resource();
00022         bool precheck();
00023         bool postcheck();
00024         void close();
00025         void fail_close();
00026         TaskRunner& get_plain_resource();
00027 
00028         const std::string& getResourceID() const;
00029 };
00030 
00031 } // namespace TaskRunner
00032 } // namespace fatalmind
00033 
00034 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3