erlang各种有用的函数包括一些有用nif封装,还有一些性能测试case。
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

19 lignes
313 B

il y a 4 ans
  1. #pragma once
  2. #include "erl_nif.h"
  3. struct atoms
  4. {
  5. ERL_NIF_TERM atomOk;
  6. ERL_NIF_TERM atomError;
  7. ERL_NIF_TERM atomTrue;
  8. // ERL_NIF_TERM atomFalse;
  9. // ERL_NIF_TERM atomUndefined;
  10. ERL_NIF_TERM atomEmpty;
  11. };
  12. struct shared_data
  13. {
  14. ErlNifResourceType* resQueueInstance;
  15. };
  16. extern atoms ATOMS;