Questions tagged [erlang-driver]

21 questions
0
votes
1 answer

Enif_send function from created thread issue

I tried to invoke enif_send from a created thread. Mainly, I have an erlang process which listen to a received message emitted from my nif. Firstly, in my enif function I got the pid of my erlang process and I cast it, then I call enif_send to send…
H. SLF
  • 61
  • 8
0
votes
1 answer

Message passing between processes in erlang?

How can I send all elements of a list one by one, from the original process to another process through message passing in Erlang?
0
votes
1 answer

Pre-R16B driver_async_port_key alternative

According to erl_driver documentation for driver_async_port_key function, Before OTP-R16, the actual port id could be used as a key with proper casting, but after the rewrite of the port subsystem, this is no longer the case. With this function,…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
1 answer

C variadic function behavior differs from expected equivalent code in an Erlang driver

I replaced following code (*dataset_p)[*term_count_p - 9] = ERL_DRV_ATOM; (*dataset_p)[*term_count_p - 8] = drv->atom_error; (*dataset_p)[*term_count_p - 7] = ERL_DRV_INT; (*dataset_p)[*term_count_p - 6] = error_code; (*dataset_p)[*term_count_p - 5]…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
1 answer

Something about erlang log framework

We have try to use lager as our log framework. But we meet some problem. lager may lost some date, we have saw the source code of lager, I think the reason is that gen_event notify is a async call, It doesn't guarantee to message receiving. lager…
baotiao
  • 775
  • 6
  • 20
0
votes
1 answer

How to run cassandra erlang client through command line?

I could not build and test following cassandra erlang client in ubuntu. https://github.com/matehat/cqerl#connecting.How to do it?
BABU K
  • 917
  • 13
  • 35
1
2