<div dir="ltr"><div>Hi,</div><div>Does successful call of enif_get_resource increase reference counter on a resource, like  enif_keep_resource does?</div><div>Or It is neccessary to do </div><div>enif_get_resource(...);</div><div>enif_keep_resource(...);</div><div>...some job...</div><div>enif_release_resource(...);</div><div><br></div><div>And if it does not increment the counter, can the resource become destroyed in the another thread between calls to enif_get_resource and enif_keep_resource? </div><div>I'm afraid of race condition there.</div></div>