acquire-project / acquire-common

Core libraries, runtime, and common devices driver for Acquire
Apache License 2.0
0 stars 8 forks source link

Subsystem failure should cause runtime to stop #13

Open nclack opened 1 year ago

nclack commented 1 year ago

There's a bit of a problem with state management when the storage sub-system fails.

A typical caller acquisition loop probably looks something like:

    while( cpx_get_state(runtime)==DeviceState_Running && ... )

When a write fails, the storage thread will exit, but the runtime fails to monitor that failure and stays in a "Running" state.

_Originally posted by @nclack in https://github.com/calliphlox/cpx/pull/75#discussion_r1029930401_