[erlang-patches] Process priority levels

Kostis Sagonas kostis@REDACTED
Fri Mar 8 15:07:28 CET 2013


In the specs and the documentation of the spawn_opt family of functions 
there is the following definition of priority levels:

	Level = low | normal | high

However, the process_flag/1 function in that module reads:

   process_flag(Flag :: priority, Level) -> OldLevel

     Types:

	Level = OldLevel = priority_level()
	priority_level() = low | normal | high | max

This is clearly inconsistent. Change specs to use the priority_level()
type declaration instead of re-defining it in various places.

=========================================================================

Please include:

   git fetch git://github.com/kostis/otp.git erlang-spawn_opt-process_level

Kostis

PS. When included, the erlang.beam file in erts/preloaded/ebin should 
also be re-generated somehow. It's not so clear to me how one does that.



More information about the erlang-patches mailing list