Make command queue addition depend on connection protocol. Only reject for protocol zero.
r1732 | dcl | 2007-03-28 12:19:10 +1000 (Wed, 28 Mar 2007) | 2 lines
This commit is contained in:
9
costa.c
9
costa.c
@@ -113,10 +113,12 @@
|
||||
assert(self);
|
||||
|
||||
/* check for lock */
|
||||
#if 0 /* DFC */
|
||||
if(self->iLock)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
/* check Size */
|
||||
if(self->iCount >= self->iMaxSize)
|
||||
{
|
||||
@@ -146,10 +148,12 @@
|
||||
assert(self);
|
||||
|
||||
/* check for lock */
|
||||
#if 0 /* DFC */
|
||||
if(self->iLock)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* do not want 0 commands */
|
||||
if(strlen(pCommand) < 1)
|
||||
@@ -195,4 +199,9 @@
|
||||
{
|
||||
self->iLock = 0;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
int CostaLocked(pCosta self)
|
||||
{
|
||||
return self->iLock;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user