- Separate template definition from template declaration

- Explicitly instantiate Singleton templates to be exported from libbackend.so
- Install only header files that are backend interfaces to be exposed to the user
- Don't use full path for including templates in header files
- Instantiate a couple of smart_ptr templates to have their symbols exported outside the DSO. This happens in history.cc. FIXME: the interface for History will definitely need to be reworked, and the two smart_ptr explicit instantiations removed.
- Change SWIG exported interface to make use of Schedulable instead of (Dynamic|Static)Schedulable
- Fix provided policies to make use of the new interface
- TODO: limit the use of smart_ptrs.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@653 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-06-23 13:06:39 +00:00
parent 56db7cd6a2
commit 66d46db357
37 changed files with 153 additions and 145 deletions

View file

@ -37,6 +37,7 @@ namespace sgpem
#include "schedulable_queue.hh"
#include "user_interrupt_exception.hh"
// Do not include full template definition here
#include "singleton.hh"
namespace sgpem
@ -54,7 +55,7 @@ namespace sgpem
*/
class SG_DLLEXPORT Scheduler /*: public Singleton<Scheduler>*/
class SG_DLLEXPORT Scheduler : public Singleton<Scheduler>
{
friend class Singleton<Scheduler>;
public:
@ -88,14 +89,10 @@ namespace sgpem
*/
Policy& get_policy();
static Scheduler& get_instance();
private:
Scheduler(); //private constructor.
SchedulableQueue _ready_queue;
PolicyManager& _policy_manager;
static Scheduler* _instance;
};
}//~ namespace sgpem