erlang's global lock
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.
 
 

12 lignes
342 B

#include "erl_nif.h"
#include <stdio.h>
static ERL_NIF_TERM termInt(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
ErlNifUInt64 TermInt = (ErlNifUInt64)argv[0];
return enif_make_uint64(env, TermInt);
}
static ErlNifFunc nif_funcs[] = {
{"termInt", 1, termInt}
};
ERL_NIF_INIT(termInt, nif_funcs, NULL, NULL, NULL, NULL);