You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2023/01/08 09:17:51 UTC

[GitHub] [incubator-brpc] luliyucoordinate opened a new issue, #2073: 关于append_user_data数据的生命周期问题

luliyucoordinate opened a new issue, #2073:
URL: https://github.com/apache/incubator-brpc/issues/2073

   我看到现有iobuf里面如果想要使用一个申请好的内存可以使用append_user_data,这个方法需要传入一个delete的析构(是一个`void(void*)`函数,传入raw数据地址)。
   
   如果申请好的内存是一个引用计数管理的内存,也就是需要append_user_data需要支持引用计数管理的内存,这个现有的代码中有办法实现吗?还是说需要修改原来iobuf的逻辑,将delete改为支持可以传入对象地址的一个function呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] luliyucoordinate closed issue #2073: 关于append_user_data中使用引用计数内存的问题

Posted by GitBox <gi...@apache.org>.
luliyucoordinate closed issue #2073: 关于append_user_data中使用引用计数内存的问题
URL: https://github.com/apache/brpc/issues/2073


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] Tuvie commented on issue #2073: 关于append_user_data中使用引用计数内存的问题

Posted by GitBox <gi...@apache.org>.
Tuvie commented on issue #2073:
URL: https://github.com/apache/incubator-brpc/issues/2073#issuecomment-1375016238

   目前IOBuf还不支持帮外部内存做引用技术


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org