[Gridflow-cvs] [svn] commit: r6155 - in /trunk/src: grid.cxx gridflow.hxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 16 17:08:52 EDT 2010


Author: matju
Date: Mon Aug 16 17:08:52 2010
New Revision: 6155

Log:
add post() before freeing any incomplete ~GridOut

Modified:
    trunk/src/grid.cxx
    trunk/src/gridflow.hxx

Modified: trunk/src/grid.cxx
==============================================================================
--- trunk/src/grid.cxx (original)
+++ trunk/src/grid.cxx Mon Aug 16 17:08:52 2010
@@ -272,6 +272,10 @@
 	sender=0;
 }
 
+GridOut::~GridOut () {
+	if (dex!=long(dim.prod())) post("~GridOut(): dex=%ld prod=%ld",dex,long(dim.prod()));
+}
+
 // never call this. this is a hack to make some things work.
 // i'm trying to circumvent either a bug in the compiler or i don't have a clue. :-(
 void make_gimmick () {

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Mon Aug 16 17:08:52 2010
@@ -752,7 +752,7 @@
 //****************************************************************
 // GridOut represents a grid transmission from the perspective of the sender
 struct GridOut : CObject {
-	// number of (minimum,maximum) BYTES to send at once
+	// number of (minimum,maximum) BYTES to send at once (probably shouldn't be in the .h at all...?)
 	static const long MIN_PACKET_SIZE = 1<<8;
 	static const long MAX_PACKET_SIZE = 1<<12;
 
@@ -767,7 +767,7 @@
 	bool fresh; /* 0 = buf was inited */
 
 	GridOut(FObject *parent_, int woutlet, const Dim &dim_, NumberTypeE nt_=int32_e);
-	~GridOut() {}
+	~GridOut();
 	void callback(GridInlet &in);
 
 	// send/send_direct: data belongs to caller, may be stack-allocated,



More information about the Gridflow-cvs mailing list