- _device_manager(device_manager),
- _session(device_manager.context()->create_session()),
- _capture_state(Stopped)
+ device_manager_(device_manager),
+ session_(device_manager.context()->create_session()),
+ capture_state_(Stopped)
// Are we setting a session device?
auto session_device = dynamic_pointer_cast<SessionDevice>(device);
// Did we have a session device selected previously?
// Are we setting a session device?
auto session_device = dynamic_pointer_cast<SessionDevice>(device);
// Did we have a session device selected previously?
(shared_ptr<Device> device, shared_ptr<Packet> packet) {
data_feed_in(device, packet);
});
(shared_ptr<Device> device, shared_ptr<Packet> packet) {
data_feed_in(device, packet);
});
- _session = _device_manager.context()->load_session(name);
- _device = _session->devices()[0];
- _decode_traces.clear();
- _session->add_datafeed_callback([=]
+ session_ = device_manager_.context()->load_session(name);
+ device_ = session_->devices()[0];
+ decode_traces_.clear();
+ session_->add_datafeed_callback([=]
(shared_ptr<Device> device, shared_ptr<Packet> packet) {
data_feed_in(device, packet);
});
(shared_ptr<Device> device, shared_ptr<Packet> packet) {
data_feed_in(device, packet);
});
}
void SigSession::set_default_device()
{
shared_ptr<HardwareDevice> default_device;
const list< shared_ptr<HardwareDevice> > &devices =
}
void SigSession::set_default_device()
{
shared_ptr<HardwareDevice> default_device;
const list< shared_ptr<HardwareDevice> > &devices =
bool enabled = std::any_of(channels.begin(), channels.end(),
[](shared_ptr<Channel> channel) { return channel->enabled(); });
bool enabled = std::any_of(channels.begin(), channels.end(),
[](shared_ptr<Channel> channel) { return channel->enabled(); });
- _sampling_thread = std::thread(
- &SigSession::sample_thread_proc, this, _device,
+ sampling_thread_ = std::thread(
+ &SigSession::sample_thread_proc, this, device_,
// Create the decode signal
shared_ptr<view::DecodeTrace> d(
new view::DecodeTrace(*this, decoder_stack,
// Create the decode signal
shared_ptr<view::DecodeTrace> d(
new view::DecodeTrace(*this, decoder_stack,
- lock_guard<mutex> lock(_sampling_mutex);
- const bool changed = _capture_state != state;
- _capture_state = state;
+ lock_guard<mutex> lock(sampling_mutex_);
+ const bool changed = capture_state_ != state;
+ capture_state_ = state;
case SR_CHANNEL_LOGIC:
signal = shared_ptr<view::Signal>(
new view::LogicSignal(*this, device,
case SR_CHANNEL_LOGIC:
signal = shared_ptr<view::Signal>(
new view::LogicSignal(*this, device,
// @todo Putting this here means that only listeners querying
// for logic will be notified. Currently the only user of
// @todo Putting this here means that only listeners querying
// for logic will be notified. Currently the only user of
const vector<shared_ptr<Channel>> channels = analog->channels();
const unsigned int channel_count = channels.size();
const vector<shared_ptr<Channel>> channels = analog->channels();
const unsigned int channel_count = channels.size();
// Try to get the snapshot of the channel
const map< shared_ptr<Channel>, shared_ptr<data::AnalogSnapshot> >::
// Try to get the snapshot of the channel
const map< shared_ptr<Channel>, shared_ptr<data::AnalogSnapshot> >::
// Create a snapshot, keep it in the maps of channels
snapshot = shared_ptr<data::AnalogSnapshot>(
new data::AnalogSnapshot(sample_limit));
// Create a snapshot, keep it in the maps of channels
snapshot = shared_ptr<data::AnalogSnapshot>(
new data::AnalogSnapshot(sample_limit));
- lock_guard<mutex> lock(_data_mutex);
- _cur_logic_snapshot.reset();
- _cur_analog_snapshots.clear();
+ lock_guard<mutex> lock(data_mutex_);
+ cur_logic_snapshot_.reset();
+ cur_analog_snapshots_.clear();