132
|
1 /*******************************************************************************
|
|
2
|
|
3 copyright: Copyright (c) 2004 Kris Bell. All rights reserved
|
|
4
|
|
5 license: BSD style: $(LICENSE)
|
|
6
|
|
7 version: July 2004: Initial release
|
|
8
|
|
9 author: Kris
|
|
10
|
|
11 *******************************************************************************/
|
|
12
|
|
13 module tango.net.cluster.tina.ClusterTask;
|
|
14
|
|
15 /*******************************************************************************
|
|
16
|
|
17
|
|
18 *******************************************************************************/
|
|
19
|
|
20 private import tango.core.Thread;
|
|
21
|
|
22 private import tango.net.cluster.tina.Cluster;
|
|
23
|
|
24 /*******************************************************************************
|
|
25
|
|
26 Quick bootstrap for cluster connectivity
|
|
27
|
|
28 *******************************************************************************/
|
|
29
|
|
30 static this ()
|
|
31 {
|
|
32 auto cluster = (new Cluster).join;
|
|
33 Thread.setLocal (0, cast(void*) cluster.createChannel("task"));
|
|
34 }
|
|
35
|