[−][src]Function portus::spawn
pub fn spawn<I, U>(
backend_builder: BackendBuilder<I>,
cfg: Config,
alg: U
) -> CCPHandle where
I: Ipc,
U: CongAlg<I> + 'static + Send,
Spawn a thread which will perform the CCP execution loop. Returns
a CCPHandle
, which the caller can use to cause the execution loop
to stop.
The run
method blocks 'forever'; it only returns in three cases:
- The IPC socket is closed.
- An invalid message is received.
- The caller calls
CCPHandle::kill()
See run
for more information.