- /**
- * This mutex prevents more than one thread from accessing
- * libsigrokdecode concurrently.
- * @todo A proper solution should be implemented to allow multiple
- * decode operations in parallel.
- */
- static mutex global_srd_mutex_;
+ vector<DecodeSegment> segments_;
+ uint32_t current_segment_id_;
+ DecodeSegment *current_segment_;