开发者

Access to libltdl's module reference count

开发者 https://www.devze.com 2023-02-24 09:18 出处:网络
I\'m using libltdl in my C code to dynamically load libtool made shared object files. Apparently a reference count is i开发者_JS百科nternally kept for each module handle returned by libtool\'s version

I'm using libltdl in my C code to dynamically load libtool made shared object files. Apparently a reference count is i开发者_JS百科nternally kept for each module handle returned by libtool's version of dlopen. Is there any way to access this reference count?


const lt_dlinfo *info;
info = lt_dlgetinfo(myhandle);
printf("refcount is %d\n", info->ref_count);
0

精彩评论

暂无评论...
验证码 换一张
取 消