Add a function to AsyncQueue to tell if we are connected

This commit is contained in:
Douglas Clowes
2013-05-28 16:17:15 +10:00
parent 2df9297a3f
commit 1cf8cc81a1
2 changed files with 15 additions and 0 deletions

View File

@@ -1238,3 +1238,14 @@ void *AsyncUnitGetQueueContext(pAsyncUnit unit)
assert(unit->queue);
return unit->queue->context;
}
int AsyncUnitIsQueueConnected(pAsyncUnit unit)
{
assert(unit);
assert(unit->queue);
if (unit && unit->queue)
if (unit->queue->state == eAsyncConnected)
return 1;
return 0;
}