Lines Matching defs:handle
122 // loading the same handle.
199 int wrapped_dlclose(void* handle) {
201 dl_wrap* wrap = static_cast<dl_wrap*>(handle);
213 void* wrapped_dlsym(void* handle, const char* symbol) {
214 if (handle == RTLD_DEFAULT || handle == RTLD_NEXT)
215 return dlsym(handle, symbol);
216 dl_wrap* wrap = static_cast<dl_wrap*>(handle);
286 void set(void* handle, node_module* mod) {
287 CHECK_NE(handle, nullptr);
290 map_[handle].module = mod;
297 map_[handle].wants_delete_module = mod->nm_flags & NM_F_DELETEME;
298 map_[handle].refcount++;
301 node_module* get_and_increase_refcount(void* handle) {
302 CHECK_NE(handle, nullptr);
305 auto it = map_.find(handle);
311 void erase(void* handle) {
312 CHECK_NE(handle, nullptr);
315 auto it = map_.find(handle);
321 map_.erase(handle);
354 // object exists indefinitely and keep it in our handle map.
373 handle_ = static_cast<void*>(lib_.handle);
566 // Tell coverity that 'handle' should not be freed when we return.