Revision: 3742
http://vexi.svn.sourceforge.net/vexi/?rev=3742&view=rev
Author: mkpg2
Date: 2009-11-03 21:38:45 +0000 (Tue, 03 Nov 2009)
Log Message:
-----------
Commented out debugging.
Modified Paths:
--------------
trunk/widgets/org.vexi.widgets/src/vexi/util/sync.t
Modified: trunk/widgets/org.vexi.widgets/src/vexi/util/sync.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/util/sync.t 2009-11-03 02:30:14 UTC
(rev 3741)
+++ trunk/widgets/org.vexi.widgets/src/vexi/util/sync.t 2009-11-03 21:38:45 UTC
(rev 3742)
@@ -25,7 +25,23 @@
</desc>
</meta:doc>
+// var track = function(o,k,o2,k2){
+// var key = "__sync__"+k+"_"+o2+"_"+k2;
+// if(o[key]) throw "!";
+// else o[key] = true;
+// };
+
static.sync = function(a,b,ka,kb){
+ var key = a+","+ka;
+ var exn = new vexi.js.Exception(key);
+ if(set[key]){
+ vexi.log.error(set[key]);
+ vexi.log.error(exn);
+ throw exn;
+ }
+ else {
+ set[key] = exn;
+ }
if(!kb) kb = ka;
var fromA = false;
var fromB = false;
@@ -48,6 +64,9 @@
a[ka] ++= writeA;
b[kb] ++= writeB;
+ // CHECK - maybe do this better
+ // track(a,ka,b,kb);
+ // track(b,kb,a,ka);
return [a,b,ka,kb,writeA,writeB];
};
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn