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:
parent
c9785892f5
commit
668242634a
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue