- 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
|
||||
KeyFile::file_read(std::istream& is)
|
||||
{
|
||||
const unsigned int KEY_FILE_BUF_LEN = 1000;
|
||||
|
||||
if (is)
|
||||
{
|
||||
_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
|
||||
// Mathematics
|
||||
//
|
||||
|
@ -21,17 +21,20 @@
|
|||
#ifndef KEY_FILE_HH
|
||||
#define KEY_FILE_HH 1
|
||||
|
||||
#define KEY_FILE_BUF_LEN 1000
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include "config.h"
|
||||
|
||||
namespace sgpem
|
||||
{
|
||||
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.
|
||||
*
|
||||
* 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
|
||||
// Mathematics
|
||||
//
|
||||
|
@ -31,27 +31,31 @@
|
|||
|
||||
namespace sgpem
|
||||
{
|
||||
class ThreadStatistics : public SchedulableStatistics
|
||||
{
|
||||
public:
|
||||
~ThreadStatistics();
|
||||
|
||||
int get_execution_time() const =0;
|
||||
int get_execution_progress() const =0;
|
||||
int get_total_inactivity() const =0;
|
||||
int get_response_time() const =0;
|
||||
int get_turn_around() const =0;
|
||||
int get_efficiency() const =0;
|
||||
int get_resource_usage_time() const =0;
|
||||
int get_resource_waitings_time() const =0;
|
||||
|
||||
const Thread* get_core() const =0;
|
||||
|
||||
virtual int get_real_arrival_time() const =0; //useful for ProcessStatistics
|
||||
|
||||
protected:
|
||||
ThreadStatistics();
|
||||
};
|
||||
class ThreadStatistics : public SchedulableStatistics
|
||||
{
|
||||
public:
|
||||
~ThreadStatistics();
|
||||
|
||||
int get_execution_time() const =0;
|
||||
int get_execution_progress() const =0;
|
||||
int get_total_inactivity() const =0;
|
||||
int get_response_time() const =0;
|
||||
int get_turn_around() const =0;
|
||||
int get_efficiency() const =0;
|
||||
int get_resource_usage_time() const =0;
|
||||
int get_resource_waitings_time() const =0;
|
||||
|
||||
const Thread* get_core() const =0;
|
||||
|
||||
/** \brief Useful for ProcessStatistics
|
||||
* \return The first instant at which the thread was first
|
||||
* given the processor
|
||||
*/
|
||||
virtual int get_real_arrival_time() const =0;
|
||||
|
||||
protected:
|
||||
ThreadStatistics();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue