Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

virtual PSafePtr<Base > PSafeColl< PSortedList< Base > , Base >::Append ( Base *  obj,
PSafetyMode  mode = PSafeReference 
) [inline, virtual, inherited]

Add an object to the collection. This uses the PCollection::Append() function to add the object to the collection, with full mutual exclusion locking on the collection.

obj  Object to add to safe collection.

Definition at line 854 of file safecoll.h.

        PWaitAndSignal mutex(collectionMutex);
        if (!obj->SafeReference())
          return NULL;
        return PSafePtr<Base>(*this, mode, collection->Append(obj));

Generated by  Doxygen 1.6.0   Back to index