aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/code.xml
AgeCommit message (Collapse)Author
2016-02-25code: Add functions that can load multiple modulesBjörn Gustavsson
Add functions to 'code' to allow loading of multiple modules at once. code:atomic_load(Modules) will load all modules at once, or fail having loaded none of them. Since we cannot guarantee the atomicity if there are modules with -on_load functions, the list of modules must not contain any modules with an -on_load function. Also, to make it possible to put an application into an inactive state for as short time as possible, also add code:prepare_loading/1 and code:finish_loading/1. They are used like this: {ok,Prepared} = code:prepare_loading(Modules) . . . ok = code:finish_loading(Prepared) code:ensure_modules_loaded/1 is useful as a pure optimization to ensure that modules that will be needed soon have indeed been loaded. It will not reload modules that have already been loaded and it *will* accept modules that have an on_load function. Therefore, it does not make sense to give any atomicity guarantees. I did consider overloading the existing code:ensure_loaded/1 function, but rejected it because the return value is very different. Having different forms of return values depending on the types of arguments is confusing.
2016-01-28Merge branch 'maint'Björn Gustavsson
* maint: Update documentation for code-loading functions code: Correct the types for error returns Eliminate run-time system crash in code:load_abs/1
2016-01-28Update documentation for code-loading functionsBjörn Gustavsson
Some of the error reasons were not explained.
2015-12-14Remove the code path cache in the code serverBjörn Gustavsson
In practice, it does not seem that code path cache can improve performance. Looking for any file that is not found will cause the cache to be rebuilt, which will negate any gain of using the cache.
2015-11-04Fix typos and grammarDerek Brown
2015-11-04[kernel] Correct documentationHans Bolinder
Fix mistakes found by 'xmllint'.
2015-06-18Change license text to APLv2Bruce Yinhe
2013-04-19Convert XML files to UTF-8Hans Bolinder
2013-02-22Update copyright yearsBjörn-Egil Dahlberg
2013-02-04Added name prefix to code.xmlFredrik Gustafsson
2013-02-01Add a new function code:get_mode() can be used to detect how the code ↵Vlad Dumitrescu
servers behaves Rationale: Some applications (like erlide) have code to be loaded dynamically on a node. It may be slow to load everything upfront every time, so if the node is in interactive mode, we would like to just append to the load path. Currently, there is no direct way to detect if the node is running in embedded mode or not so that we can do the right thing.
2012-08-29Merge branch 'maint'Henrik Nord
2012-07-05Fix various doc typos for R15B02Tuncer Ayaz
2012-01-27Move types and specs from erl_bif_types.erl to modulesHans Bolinder
2011-12-05Fix misspelling of chosenTuncer Ayaz
2011-09-26Correct XML filesHans Bolinder
2011-06-20Add more specs and typesHans Bolinder
An incorrect spec, rpc:yield/1, has been fixed.
2011-05-11Use Erlang specs and types for documentationHans Bolinder
2011-03-11Update copyright yearsBjörn-Egil Dahlberg
2010-07-26Fix minor typos and errors in documentationCristian Greco
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP