[sal~src:19] Cleanup.
- From: therealbean@kenai.com
- To: commits@sal.kenai.com
- Subject: [sal~src:19] Cleanup.
- Date: Mon, 23 Nov 2009 01:01:07 +0000
Project: sal
Repository: src
Revision: 19
Author: therealbean
Date: 2009-11-22 19:37:10 UTC
Link:
Log Message:
------------
Cleanup.
Revisions:
----------
19
Modified Paths:
---------------
SalTest/src/saltest/CalcAndPass.java
Diffs:
------
Index: SalTest/src/saltest/CalcAndPass.java
===================================================================
--- SalTest/src/saltest/CalcAndPass.java (revision 18)
+++ SalTest/src/saltest/CalcAndPass.java (revision 19)
@@ -49,7 +49,7 @@
return;
}
else
- if( numberOfPasses % ( MAX_REPS / 10 ) == 0 ) {
+ if( numberOfPasses % ( MAX_REPS / 1000 ) == 0 ) {
sal.send( new Message( "log",
"actor: " + getName() +
" at loop: " + numberOfPasses ));
@@ -57,12 +57,12 @@
}
// now send the message
-// if( nextActorQueue != null ) {
-// synchronized( this ) {
-// nextActorQueue.add( numberOfPasses );
-// }
-// }
-// else {
+ if( nextActorQueue != null ) {
+ synchronized( this ) {
+ nextActorQueue.add( numberOfPasses );
+ }
+ }
+ else {
// determine address of next actor.
nextActor = Integer.valueOf( this.getName() );
nextActor++;
@@ -71,6 +71,6 @@
}
sal.send( new Message( nextActor.toString(),
numberOfPasses ));
-// }
+ }
}
}
\ No newline at end of file
|
[sal~src:19] Cleanup. |
therealbean | 11/23/2009 |





