Exemplo n.º 1
0
 def EnsureAppending(self, queues):
     if not self.Available:
         return False
     if self.QueueStatus != tagQueueStatus.qsMergePushing:
         return True
     if queues is None:
         return True
     queues = list(queues)
     if len(queues) == 0:
         return True
     handles = []
     for q in queues:
         h = 0
         if isinstance(q, CClientSocket) or isinstance(q, IClientQueue):
             h = q.Handle
         else:
             h = q
         if ccl.GetClientQueueStatus(h) != tagQueueStatus.qsMergeComplete:
             handles.append(h)
     if len(handles) > 0:
         return self.AppendTo(handles)
     self.Reset()
     return True
Exemplo n.º 2
0
 def QueueStatus(self):
     return ccl.GetClientQueueStatus(self._m_cs_.Handle)