- Another bit of auditing...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1149 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
90c562006a
commit
aeaec77cd1
|
@ -81,6 +81,8 @@ namespace sgpem
|
||||||
void
|
void
|
||||||
KeyFile::file_read(std::istream& is)
|
KeyFile::file_read(std::istream& is)
|
||||||
{
|
{
|
||||||
|
const unsigned int KEY_FILE_BUF_LEN = 1000;
|
||||||
|
|
||||||
if (is)
|
if (is)
|
||||||
{
|
{
|
||||||
_elements.clear(); // erase all elements
|
_elements.clear(); // erase all elements
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// src/backend/key_file.hh - Copyright 2005, 2006, University
|
// src/backend/sgpemv2/key_file.hh - Copyright 2005, 2006, University
|
||||||
// of Padova, dept. of Pure and Applied
|
// of Padova, dept. of Pure and Applied
|
||||||
// Mathematics
|
// Mathematics
|
||||||
//
|
//
|
||||||
|
@ -21,17 +21,20 @@
|
||||||
#ifndef KEY_FILE_HH
|
#ifndef KEY_FILE_HH
|
||||||
#define KEY_FILE_HH 1
|
#define KEY_FILE_HH 1
|
||||||
|
|
||||||
#define KEY_FILE_BUF_LEN 1000
|
|
||||||
|
|
||||||
#include <glibmm/ustring.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <map>
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
namespace sgpem
|
namespace sgpem
|
||||||
{
|
{
|
||||||
class KeyFile;
|
class KeyFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <glibmm/ustring.h>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace sgpem
|
||||||
|
{
|
||||||
/** \brief Save and retrieve configuration files formatted as key=value rows.
|
/** \brief Save and retrieve configuration files formatted as key=value rows.
|
||||||
*
|
*
|
||||||
* This class handles files to store and retrieve configuration preferences
|
* This class handles files to store and retrieve configuration preferences
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// src/backend/thread_statistics.hh - Copyright 2005, 2006, University
|
// src/backend/sgpemv2/thread_statistics.hh - Copyright 2005, 2006, University
|
||||||
// of Padova, dept. of Pure and Applied
|
// of Padova, dept. of Pure and Applied
|
||||||
// Mathematics
|
// Mathematics
|
||||||
//
|
//
|
||||||
|
@ -31,27 +31,31 @@
|
||||||
|
|
||||||
namespace sgpem
|
namespace sgpem
|
||||||
{
|
{
|
||||||
class ThreadStatistics : public SchedulableStatistics
|
class ThreadStatistics : public SchedulableStatistics
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~ThreadStatistics();
|
~ThreadStatistics();
|
||||||
|
|
||||||
int get_execution_time() const =0;
|
int get_execution_time() const =0;
|
||||||
int get_execution_progress() const =0;
|
int get_execution_progress() const =0;
|
||||||
int get_total_inactivity() const =0;
|
int get_total_inactivity() const =0;
|
||||||
int get_response_time() const =0;
|
int get_response_time() const =0;
|
||||||
int get_turn_around() const =0;
|
int get_turn_around() const =0;
|
||||||
int get_efficiency() const =0;
|
int get_efficiency() const =0;
|
||||||
int get_resource_usage_time() const =0;
|
int get_resource_usage_time() const =0;
|
||||||
int get_resource_waitings_time() const =0;
|
int get_resource_waitings_time() const =0;
|
||||||
|
|
||||||
const Thread* get_core() const =0;
|
const Thread* get_core() const =0;
|
||||||
|
|
||||||
virtual int get_real_arrival_time() const =0; //useful for ProcessStatistics
|
/** \brief Useful for ProcessStatistics
|
||||||
|
* \return The first instant at which the thread was first
|
||||||
protected:
|
* given the processor
|
||||||
ThreadStatistics();
|
*/
|
||||||
};
|
virtual int get_real_arrival_time() const =0;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
ThreadStatistics();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue