2020-02-18 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in the implmenetation of the 'Set Serial Trap'
	['SI'] RML that could cause deadlocks and intermittent operation.
This commit is contained in:
Fred Gleason
2020-02-18 08:13:03 -05:00
parent 15cd9954a0
commit 16f8154800
6 changed files with 45 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
//
// A class for trapping arbitrary character sequences.
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License
@@ -21,14 +21,10 @@
#ifndef RDCODETRAP_H
#define RDCODETRAP_H
#include <vector>
#include <qlist.h>
#include <qobject.h>
using namespace std;
struct RTrapEvent {
struct RDTrapEvent {
int id;
char *code;
int length;
@@ -53,7 +49,7 @@ class RDCodeTrap : public QObject
void trapped(int id);
private:
vector<struct RTrapEvent> trap_events;
QList<struct RDTrapEvent> trap_events;
};