Ticket #97 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years 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: 1.2.0.8
Keywords: Cc:

Description

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 3 years ago by michelpons

  • Milestone set to Maintenance of Phase II

comment:2 Changed 3 years ago by michelpons

May/should this ticket be resolved in release 1.2.0.9?

comment:3 Changed 3 years 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 2 years 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 2 years ago by michelpons

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

comment:6 Changed 2 years ago by jasper

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