|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 1/2] object: Add can_be_deleted callback to TypeInfo and TypeImpl |
Date: | Thu, 26 Mar 2015 14:37:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 26/03/2015 11:29, Igor Mammedov wrote: > What value of ref, one would use to decide if deletion is possible? > > In generic case object can have ref > 1 but still be eligible for deleting > via object-del. Right, for example devices are unparented with ref > 1. Still, it could be a sane default implementation. It doesn't even need a function pointer until someone comes up with an object that has different needs. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |