【问题标题】:Access to libltdl's module reference count访问 libltdl 的模块引用计数
【发布时间】:2011-04-12 20:29:05
【问题描述】:

我在我的 C 代码中使用 libltdl 来动态加载 libtool 制作的共享对象文件。显然,libtool 的 dlopen 版本返回的每个模块句柄都会在内部保留一个引用计数。有没有办法访问这个引用计数?

【问题讨论】:

    标签: c linux libtool


    【解决方案1】:
    const lt_dlinfo *info;
    info = lt_dlgetinfo(myhandle);
    printf("refcount is %d\n", info->ref_count);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      • 2018-01-01
      • 2012-01-18
      • 2012-04-11
      • 2014-11-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多