- 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:
elvez 2006-09-14 15:31:42 +00:00
parent 90c562006a
commit aeaec77cd1
3 changed files with 39 additions and 30 deletions

View File

@ -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

View File

@ -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

View File

@ -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
// //
@ -47,7 +47,11 @@ namespace sgpem
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
* given the processor
*/
virtual int get_real_arrival_time() const =0;
protected: protected:
ThreadStatistics(); ThreadStatistics();