Repository navigation
Bug fixes for several minor issues surfaced by AI code review:
- Closed several loopholes / race conditions for resuming processes in wrong sequence if occurring at the same simulation timestamp.
- Processes waiting for events or other processes are now woken in FIFO order.
- Detect and handle spurious CMB_PROCESS_SUCCESS signals that do not belong to current wait. The CMB_PROCESS_SUCCESS value is reserved for the ongoing wait, some other timer returning it to a waiting process is a model error.
- Several debug asserts promoted to release asserts, including one that forbids calling cmb_process_interrupt() with CMB_PROCESS_SUCCESS signal value.
- Stopping a cmb_process that has been started but not yet executed its start event will now prevent it from running and return CMB_PROCESS_SUCCESS.
- Terminating or destroying a process now cancels every scheduled event with it as subject, including any user-defined events.
- cmb_dataset_sort() no longer declares its argument as const. Although legal C, it was semantically confusing for a function that very much modifies its target dataset.
- Hardened trial abandoning logic, e.g., if abandoning a trial with cmb_ objects declared as local variables on the stack.
- Calling cimba_run() from inside a trial now trips an assert instead of deadlocking silently on a mutex.
- The default number of worker threads now follows the CPU affinity mask.
- Linux binary soversion set to equal Cimba version, e.g., libcimba.so.3.1.2. The Windows DLL name changes with every release (libcimba-3.1.2.dll).