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

void tmTransactionService::OnDetachReply ( tmTransaction aTrans  )  [protected]

Removes the tm_queue_mapping object and calls the OnDetachReply() method on the observer of the queue detached.

Definition at line 361 of file tmTransactionService.cpp.

References tmTransaction::GetQueueID(), GetQueueMap(), tmTransaction::GetStatus(), and tmVector::Remove().


  tm_queue_mapping *qmap = GetQueueMap(aTrans->GetQueueID());

  // get the observer before we release the hashtable entry
  ipcITransactionObserver *observer = 
    (ipcITransactionObserver *)PL_HashTableLookup(mObservers, 

  // if it was removed, clean up
  if (aTrans->GetStatus() >= 0) {

    // remove the link between observer and queue
    PL_HashTableRemove(mObservers, qmap->joinedQueueName);

    // remove the mapping of queue names and id
    delete qmap;

  // notify the observer -- could be didn't detach
  if (observer)
    observer->OnDetachReply(aTrans->GetQueueID(), aTrans->GetStatus());

Generated by  Doxygen 1.6.0   Back to index