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);
精彩评论