class Herd::Cluster

Defined in:

herd/cluster.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(threads : Int32) #

Create the cluster


[View source]

Class Method Detail

def self.thread #

Return the current thread


[View source]

Instance Method Detail

def execute(&block) #

Specify a block to execute @threads times


[View source]
def fork(env : Hash) #

Fork the current process


[View source]
def is_master #

Check if the current process is the master


[View source]
def is_slave #

Check if the current process is a slave


[View source]