Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0732-Clarify-enif_open_resource_type-if-load-fa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0732-Clarify-enif_open_resource_type-if-load-fails.patch of Package erlang
From 41f36f35ac1bbd3e877002f942462f071aa99724 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Wed, 3 May 2023 18:58:12 +0200 Subject: [PATCH] Clarify enif_open_resource_type if load fails --- erts/doc/src/erl_nif.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index 4208aa269a..91e9e68d16 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -2849,7 +2849,9 @@ enif_map_iterator_destroy(env, &iter);</code> <p>Notice that <c>enif_open_resource_type</c> is only allowed to be called in the two callbacks <seecref marker="#load"><c>load</c></seecref> and - <seecref marker="#upgrade"><c>upgrade</c></seecref>.</p> + <seecref marker="#upgrade"><c>upgrade</c></seecref>. The resource type + is only created or taken over if the calling <c>load</c>/<c>upgrade</c> + function returns successfully.</p> <p>See also <seecref marker="#enif_open_resource_type_x"> <c>enif_open_resource_type_x</c></seecref>.</p> </desc> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor