File cmb_buffer.h
↰ Parent directory (include)
A two-headed fixed-capacity resource where one or more producer processes can put an amount into the one end, and one or more consumer processes can get amounts out of the other end. If enough space is not available, the producers wait, and if there is not enough content, the consumers wait.
Definition (include/cmb_buffer.h)
Detailed Description
The buffer will go through level changes that may not be visible outside its own code, e.g., when some process is trying to put or get more content than currently possible. The buffer level will then hit full or empty before the get or put call returns. Trying to track the level from the user code will be inaccurate. Use the built-in history recording instead and retrieve the buffer level history as a timeseries once the trial is complete.
Includes
cmb_assert.h(File cmb_assert.h)cmb_resourceguard.h(File cmb_resourceguard.h)cmb_timeseries.h(File cmb_timeseries.h)cmi_resourcebase.hstdint.h