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:

  1. The IPC socket is closed.
  2. An invalid message is received.
  3. The caller calls CCPHandle::kill()

See run for more information.