From 1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 20 Feb 2019 16:06:03 +0100 Subject: erts: Add enif_compare_pids as a macro wrappper around enif_compare --- erts/doc/src/erl_nif.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'erts/doc/src/erl_nif.xml') diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index ac873d0c8c..919f9f3245 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -1089,6 +1089,19 @@ typedef struct { + + int + enif_compare_pids(const ErlNifPid *pid1, const ErlNifPid *pid2) + Compare two pids. + +

Compares two ErlNifPid + s according to term order.

+

Returns 0 if pid1 and pid2 are equal, + < 0 if pid1 < pid2, and + > 0 if pid1 > pid2.

+
+
+ void enif_cond_broadcast(ErlNifCond *cnd) -- cgit v1.2.3