Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2451

Show
Ignore:
Timestamp:
07/12/07 15:58:27 (1 year ago)
Author:
kris
Message:

some cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/cluster/tclient.d

    r2449 r2451  
    33 
    44*******************************************************************************/ 
     5 
     6import Add; 
    57 
    68import tango.io.Stdout; 
     
    911 
    1012import tango.util.log.Configurator; 
    11  
    12 import tango.net.cluster.tina.Cluster; 
    13  
    14 import Add; 
    1513 
    1614/******************************************************************************* 
     
    2119void main (char[][] args) 
    2220{ 
    23         auto cluster = (new Cluster).join; 
    24         auto channel = cluster.createChannel ("rpc.channel"); 
    25  
    2621        // an implicit task instance 
    2722        auto add = new NetCall!(add); 
     
    3631              for (int i=10000; i--;) 
    3732                  { 
    38                   // both tasks are used in the same manner 
    39                   add (1, 2, channel); 
    40                   sub (3, 4, channel); 
     33                  // both task types are used in the same manner 
     34                  add (1, 2); 
     35                  sub (3, 4); 
    4136                  } 
    4237              Stdout.formatln ("{} calls/s", 20000/w.stop);