The Cimba C Library

The native C library is the engine behind Cimba Python. It owns the event queue, process scheduler, coroutine context switching, native resources, and random number generators.

Use the C docs when you need the deeper background:

The vendored source for those docs is in subprojects/cimba/docs. These Python docs follow the same Sphinx and Read the Docs theme setup, but are organized for Python users.

Mapping Python to Cimba C

Python API

Native concept

cimba.Simulation

Event queue, simulation clock, and random generator

cimba.Process, cimba.hold()

Stackful Cimba processes and process scheduling

cimba.Buffer

Numeric buffers with blocking put/get

cimba.ObjectQueue, cimba.PriorityQueue

Object queues and priority queues

cimba.Resource, cimba.ResourcePool

Binary and counting resources

Random functions

Cimba random number generators and distributions