- PluginServices.Control: the condition variable predicate could read
nextState before the callback wrote it; initialize it
- MemoryResources.allocator: &*v.end() dereferences the end iterator;
compute the end address from v.data() + v.size()
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the conversion tests only checked that no exception was thrown, so a
wrong mapping passed
- check each name and value in both directions, include the states
and transitions that the tests missed (UNDEFINED, INITIALIZED, BOUND,
AUTO, BIND, CONNECT), and check that an unknown name throws
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the Accessors test read the value back from its own local property
map, which it had just written, so the check could not fail
- check the result of UpdateProperties() and read the value back from
the plugin services
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the subscriber threads captured the loop counter by reference while
the spawning loop kept incrementing it: a genuine data race
- depending on timing, threads could also end up with duplicate
subscriber names; capture the counter by value instead
Delete special member functions where they are not used.
(as part of applying suggestions from cppcoreguidelines-special-member-functions)
These classes don't need to be copyable/movable:
# copy/move not used:
zmq:: TransportFactory, Socket, Message, UnmanagedRegion, Poller, Context
shm:: TransportFactory, Socket, Message, UnmanagedRegion, Poller
ofi:: TransportFactory, Socket, Message, Context
shm:: ZMsg, Region, Monitor, TerminalConfig, Manager
plugins:: Config, Control, TerminalConfig
fairmq::StateQueue, StateMachine, ProgOptions, PluginServices, PluginManager, Plugin, Device, StateSubscription
TestData, BadDevice, TestDevice (test suite heplers)
# used via ptr interface:
fairmq::UnmanagedRegion, TransportFactory, Socket, Poller, Message
These classes need to be movable/copyable:
MyClass (test suite helper), fairmq::Channel, fairmq::Parts
- Split INITIALIZING state into Init+Bind+Connect
- Remove PAUSE state
- Convert state/transitions to enum classes (CamelCase)
- Transition to a state only once previous handler is complete
- Add CompleteInit transition to notify Initializing state
that config updates are complete
- Deprecate WaitForEndOfState(transition) in favor of
WaitForState(state)/WaitForNextState()
- Update tests/plugins to new APIs
- Deprecate CheckCurrentState() in favor of NewStatePending()