|
OSSIA
Open Scenario System for Interactive Application
|
Inherits Nano::Observer.
Owns the transport and every asio-side callback. As on the TCP outbound socket, the Nano::Observer lives here and not on the QObject: the signals are members of this very object, so their unsynchronized slot lists can only be mutated while the whole state is being destroyed, and the QObject
Static Public Member Functions | |
| static socket_type | make_socket (const ossia::net::serial_configuration &conf, boost::asio::io_context &ctx, ossia::net::framing f) |
Public Attributes | |
| socket_type | socket |
| std::atomic_bool | alive {true} |
| ossia::net::encoding | enc {ossia::net::encoding::none} |
| std::mutex | qt_mutex |
| qml_serial_socket * | self {} |
| std::mutex ossia::qt::qml_serial_socket::state::qt_mutex |
Guards self, which is cleared before the QObject starts dying. Held for the whole asio -> Qt handover.