[erlang-questions] enif_send backpressure

Daniel Goertzen daniel.goertzen@REDACTED
Tue May 30 03:36:06 CEST 2017


When you send a message to the process you could increment a counter, and
when the process finishes it can call a NIF to decrement the counter.
Resources might be handy if you have many counters to keep track of.

On Mon, May 29, 2017 at 5:06 PM Roger Lipscombe <roger@REDACTED>
wrote:

> On 29 May 2017 at 13:13, Lukas Larsson <lukas@REDACTED> wrote:
>
>> It is possible to get that information in the current implementation, but
>> it may very well not be possible in future implementations. We don't want
>> to create an API that exposes an implementation detail that may very well
>> change in the future.
>>
>
> That's fair.
>
>
>> If you need that type of back pressure, you should implement your own
>> synchronization mechanism.
>>
>
> Any suggestions for things I should take a look at?
>
> Thanks,
> Roger.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170530/c65d8b4c/attachment.htm>


More information about the erlang-questions mailing list