1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Create constant for number of concurrent commands sent to GDB

Change-Id: I8911ec6014d81a9516b39d3dc6c2b1a5f7b80bdd
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2014-07-28 15:32:52 -04:00
parent c9785892f5
commit 668242634a

View file

@ -77,6 +77,7 @@ public abstract class AbstractMIControl extends AbstractDsfService
implements IMICommandControl
{
private static final String MI_TRACE_IDENTIFIER = "[MI]"; //$NON-NLS-1$
private static final int NUMBER_CONCURRENT_COMMANDS = 3;
/*
* Thread control variables for the transmit and receive threads.
@ -343,7 +344,7 @@ public abstract class AbstractMIControl extends AbstractDsfService
fCommandQueue.add(handle);
processCommandQueued(handle);
if (fRxCommands.size() < 3) {
if (fRxCommands.size() < NUMBER_CONCURRENT_COMMANDS) {
// In a separate dispatch cycle. This allows command listeners
// to respond to the command queued event.
getExecutor().execute(new DsfRunnable() {