Skip to content
Snippets Groups Projects
Commit 612b058c authored by zwart's avatar zwart
Browse files

BugID: 692

Added debugging output
parent 731facfc
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ namespace LOFAR
LockedRange& operator= (const LockedRange& that);
void printTimers(ostream& os);
void printPointers();
//# Datamembers
const S itsSize;
......
......@@ -56,6 +56,16 @@ namespace LOFAR
itsWaitingForSpaceTimer.print (os);
};
template < class T, class S >
void LockedRange < T, S >::printPointers ()
{
cout << "LockedRange : " << endl
<< " itsReadTail = " << itsReadTail << endl
<< " itsReadHead = " << itsReadHead << endl
<< " itsWriteTail = " <<itsWriteTail << endl
<< " itsWriteHead = " << itsWriteHead <<endl;
};
template < class T, class S >
T LockedRange < T, S >::writeLock (const T & desiredBegin,
const T & desiredEnd)
......@@ -93,7 +103,8 @@ namespace LOFAR
if (!amWaiting)
{
itsWriteLockTimer.stop ();
cout<<"Waiting for space: "<<begin<<" - "<<end<<endl;
cout<<"Waiting for space: "<<begin<<" - "<<end<< endl;;
printPointers();
itsWaitingForSpaceTimer.start ();
amWaiting = true;
}
......@@ -171,7 +182,8 @@ namespace LOFAR
if (!amWaiting)
{
itsReadLockTimer.stop ();
cout<<"Waiting for data: "<<begin<<" - "<<end<<endl;
cout<<"Waiting for data: "<<begin<<" - "<<end<< endl;
printPointers();
itsWaitingForDataTimer.start ();
amWaiting = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment