erlang各种有用的函数包括一些有用nif封装,还有一些性能测试case。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
332 B

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