From 631939c2452413014dfe3777997157ab541770ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 10 Aug 2011 14:39:34 +0200 Subject: Add erlang:check_old_code/1 Add erlang:check_old_code/1 to quickly check whether a module has old code. If there is no old code, there is no need to call erlang:check_process_code/2 for all processes, which will save some time if there are many processes. --- erts/doc/src/erlang.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'erts/doc/src') diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 7cfab0785d..ad7a57bd73 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -517,6 +517,18 @@ + + check_old_code(Module) -> boolean() + Check if a module has old code + + Module = atom() + + +

Returns true if the Module has old code, + and false otherwise.

+

See also code(3).

+
+
check_process_code(Pid, Module) -> boolean() Check if a process is executing old code for a module -- cgit v1.2.3