Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

PRBool tmQueue::IsAttached ( PRUint32  aClientID  )  [protected]

Helper method to determine if the client has already attached.

PR_TRUE if the client is attached to the queue.

PR_FALSE if the client is not attached to the queue.

Definition at line 214 of file tmQueue.cpp.

References tmVector::Size().

Referenced by AttachClient(), FlushQueue(), and PostTransaction().

  // XXX could be an issue if the aClientID is 0 and there
  // is a "hole" in the mListeners vector. - may NEED to store PRUint32*s
  PRUint32 size = mListeners.Size();
  for (PRUint32 index = 0; index < size; index++) {
    if (aClientID == (PRUint32)NS_PTR_TO_INT32(mListeners[index]))
      return PR_TRUE;
  return PR_FALSE;

Generated by  Doxygen 1.6.0   Back to index