aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-02-20 16:06:03 +0100
committerSverker Eriksson <[email protected]>2019-02-20 16:06:03 +0100
commit1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8 (patch)
tree22b78ac4084d91a1baa661e54e654dc285a3a9ed /erts/doc/src
parent9197f6ea9af095eebbbf42e4ceca5ef762467276 (diff)
downloadotp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.tar.gz
otp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.tar.bz2
otp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.zip
erts: Add enif_compare_pids
as a macro wrappper around enif_compare
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erl_nif.xml13
1 files changed, 13 insertions, 0 deletions
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
@@ -1090,6 +1090,19 @@ typedef struct {
</func>
<func>
+ <name since="OTP @OTP-15011@"><ret>int</ret><nametext>
+ enif_compare_pids(const ErlNifPid *pid1, const ErlNifPid *pid2)</nametext></name>
+ <fsummary>Compare two pids.</fsummary>
+ <desc>
+ <p>Compares two <seealso marker="#ErlNifPid"><c>ErlNifPid</c>
+ </seealso>s according to term order.</p>
+ <p>Returns <c>0</c> if <c>pid1</c> and <c>pid2</c> are equal,
+ &lt; <c>0</c> if <c>pid1</c> &lt; <c>pid2</c>, and
+ &gt; <c>0</c> if <c>pid1</c> &gt; <c>pid2</c>.</p>
+ </desc>
+ </func>
+
+ <func>
<name since="OTP R13B04"><ret>void</ret>
<nametext>enif_cond_broadcast(ErlNifCond *cnd)</nametext></name>
<fsummary></fsummary>