view tango/tango/net/cluster/tina/ClusterTask.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents 1700239cab2e
children
line wrap: on
line source

/*******************************************************************************

        copyright:      Copyright (c) 2004 Kris Bell. All rights reserved

        license:        BSD style: $(LICENSE)
        
        version:        July 2004: Initial release      
        
        author:         Kris

*******************************************************************************/

module tango.net.cluster.tina.ClusterTask;

/*******************************************************************************


*******************************************************************************/

private import tango.core.Thread;

private import tango.net.cluster.tina.Cluster;

/*******************************************************************************

        Quick bootstrap for cluster connectivity 

*******************************************************************************/

static this ()
{
        auto cluster = (new Cluster).join;
        Thread.setLocal (0, cast(void*) cluster.createChannel("task"));
}