Function portus::spawn [−][src]
pub fn spawn<I, U>(
backend_builder: BackendBuilder<I>,
cfg: Config<I, U>
) -> CCPHandle where
I: Ipc,
U: CongAlg<I>,
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.