Module ringbuffer_sup

Supervisor for the ring buffers processes.

Copyright © 2021 Marc Worrell

Behaviours: supervisor.

Authors: Marc Worrell (marc@worrell.nl).

Description

Supervisor for the ring buffers processes.

Function Index

init/1Supervisor callback, initialize the children.
start_child/2Start a ringbuffer.
start_link/0Start the simple_one_for_one supervisor for the ring buffer processes.
stop_child/1Stop a ringbuffer.

Function Details

init/1

init(X1) -> any()

Supervisor callback, initialize the children.

start_child/2

start_child(Name::atom(), Size::pos_integer()) -> {ok, pid()} | {error, term()}

Start a ringbuffer.

start_link/0

start_link() -> any()

Start the simple_one_for_one supervisor for the ring buffer processes.

stop_child/1

stop_child(Name::atom()) -> ok | {error, not_found}

Stop a ringbuffer. The managing process is removed from the supervisor and the ets table is released.


Generated by EDoc