Ticket #97 (closed enhancement: fixed)

Opened 2 years ago

Last modified 12 months ago

COBIA_SmartPointer::outputArgument can be more efficient

Reported by: jasper Owned by: jasper
Priority: minor Milestone: Maintenance of Phase II
Component: Client Header Files Version:
Keywords: Cc:


COBIA_SmartPointer::outputArgument is implemented by means of an addReference. It can instead be implemented as a detach operation (saves an addReference and a release call).

Change History

comment:1 Changed 2 years ago by michelpons

  • Milestone set to Maintenance of Phase II

comment:2 Changed 21 months ago by michelpons

May/should this ticket be resolved in release

comment:3 Changed 21 months ago by jasper

I prefer to do this after release and have some more internal use to make sure that everything works as intended. This change applies to the client header files.

comment:4 Changed 12 months ago by jasper

Callers should be aware that after outputArgument() in its new implementation, the smart pointer no longer holds a reference to the object, and can no longer be used. Hence outputArgument() should be the last reference to the object's smart pointer.

comment:5 Changed 12 months ago by michelpons

Is there a new implementation compared to its implementation in version I don't see any commit mentioned with modifications.

comment:6 Changed 12 months ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.