[英]What is the difference between API vxReleaseNode and vxRemoveNode in OpenVX object node?
I am trying to understand the Open-vx object node for one of my requirement.I have gone through the specification but not able to understand the exact difference between an API vxRemoveNode() and vxReleaseNode(). 我正在尝试了解Open-vx对象节点以满足我的要求之一。 Spec says vxReleaseNode :
规范说vxReleaseNode:
"Releases a reference to a Node object. The object may not be garbage collected until its total reference count is zero."
I don't get the second point in the above statement. 我在上面的陈述中没有第二点。
Regrading the vxRemoveNode as per my understanding it completely removes the node from the graph. 根据我的理解,对vxRemoveNode进行重分级会完全从图中删除该节点。
In the post condition after calling both the APIs,In the specs they mentioned: 在调用这两个API后,在发布条件中,他们提到了规范:
"After returning from this function the reference is zeroed"
Please help me to understand the exact difference between these APIs. 请帮助我了解这些API之间的确切区别。
Never used OpenVX. 从未使用过OpenVX。 This is what I understand from the documentation:
这是我从文档中了解的内容:
node
does not point anymore to a vx_node
object, the vx_node
object will be completely garbage collected when there is no more variable that references this object. node
不再指向vx_node
对象,当不再有引用该对象的变量时, vx_node
对象将被完全垃圾回收。 node
pointer is set to zero after the call. node
指针设置为零。 vx_node
object from the graph, node
is set to zero after the call. vx_node
对象,调用后将node
设置为零。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.