Erlang at Facebook - hibernation and gen_server

Davide Marquês nesrait@REDACTED
Tue Jun 30 06:34:16 CEST 2009


Hi all!

I was going through Eugene Letuchy's Erlang at
Facebook<http://www.erlang-factory.com/conference/SFBayAreaErlangFactory2009/speakers/EugeneLetuchy>presentation
when this popped up:

> Hibernation
> [...] not compatible with gen_server:call (and gen_server:reply)
>  - gen_server:call has its own receive() loop
>  - hibernate() doesn't support have a explicit timeout
>  - fixed with a few hours and a look at gen.erl"
>

What's incompatible about gen_server/hibernate that needs fixing?
I already read in the documentation about having to call
proc_lib:hibernate/3,
but I the slides seem to mentioning something else... :\

Does anyone know what this is about?

Thanks in advance,
:Davide


More information about the erlang-questions mailing list