mirror of
https://github.com/wfjm/w11.git
synced 2026-02-02 15:11:46 +00:00
rbus->ibus window. Replaces with a 4k word window for whole IO page.
- utilize rlink protocol version 4 features in w11a backend
- use attn notifies to dispatch attn handlers
- use larger blocks (7*512 rather 1*512 bytes) for rdma transfers
- use labo and merge csr updates with last block transfer
- this combined reduces the number of round trips by a factor 2 to 3,
and in some cases the throughput accordingly.
90 lines
2.4 KiB
C++
90 lines
2.4 KiB
C++
// $Id: Rexception.cpp 625 2014-12-30 16:17:45Z mueller $
|
|
//
|
|
// Copyright 2013-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
//
|
|
// This program is free software; you may redistribute and/or modify it under
|
|
// the terms of the GNU General Public License as published by the Free
|
|
// Software Foundation, either version 2, or at your option any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful, but
|
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
// for complete details.
|
|
//
|
|
// Revision History:
|
|
// Date Rev Version Comment
|
|
// 2014-12-30 625 1.1 add ctor(meth,text,emsg)
|
|
// 2013-01-12 474 1.0 Initial version
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/*!
|
|
\file
|
|
\version $Id: Rexception.cpp 625 2014-12-30 16:17:45Z mueller $
|
|
\brief Implemenation of Rexception.
|
|
*/
|
|
|
|
#include "Rexception.hpp"
|
|
|
|
using namespace std;
|
|
|
|
/*!
|
|
\class Retro::Rexception
|
|
\brief FIXME_docs
|
|
*/
|
|
|
|
// all method definitions in namespace Retro
|
|
namespace Retro {
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! Default constructor
|
|
|
|
Rexception::Rexception()
|
|
: fErrmsg()
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
Rexception::Rexception(const RerrMsg& errmsg)
|
|
: fErrmsg(errmsg)
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
Rexception::Rexception(const std::string& meth, const std::string& text)
|
|
: fErrmsg(meth,text)
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
Rexception::Rexception(const std::string& meth, const std::string& text,
|
|
int errnum)
|
|
: fErrmsg(meth,text,errnum)
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
Rexception::Rexception(const std::string& meth, const std::string& text,
|
|
const RerrMsg& errmsg)
|
|
: fErrmsg(meth,text+errmsg.Message())
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! Destructor
|
|
|
|
Rexception::~Rexception() throw()
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
const char* Rexception::what() const throw()
|
|
{
|
|
return fErrmsg.Message().c_str();
|
|
}
|
|
|
|
} // end namespace Retro
|