diff options
author | Micael Karlberg <[email protected]> | 2019-07-30 16:41:00 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-30 17:29:01 +0200 |
commit | 4a69f68e9f0ffd76f1338851f8c19614b5d7fc14 (patch) | |
tree | 158855be2eeedecc8d181c65430fd5bc4f7aa5ae /erts/preloaded/src | |
parent | e040bbe58cd38584b315ae48c593fc7c5b541c9b (diff) | |
download | otp-4a69f68e9f0ffd76f1338851f8c19614b5d7fc14.tar.gz otp-4a69f68e9f0ffd76f1338851f8c19614b5d7fc14.tar.bz2 otp-4a69f68e9f0ffd76f1338851f8c19614b5d7fc14.zip |
[esock] Updated select-info
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r-- | erts/preloaded/src/socket.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index e01c85d5d1..07e720c44d 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -627,11 +627,11 @@ -opaque select_tag() :: atom(). -opaque select_ref() :: reference(). --record(select_info, {tag :: select_tag(), ref :: select_ref()}). +%% -record(select_info, {tag :: select_tag(), ref :: select_ref()}). --type select_info() :: #select_info{}. +-type select_info() :: {select_info, select_tag(), select_ref()}. --define(SELECT_INFO(T, R), #select_info{tag = T, ref = R}). +-define(SELECT_INFO(T, R), {select_info, T, R}). -define(SELECT(T, R), {select, ?SELECT_INFO(T, R)}). @@ -2685,7 +2685,7 @@ peername(#socket{ref = SockRef}) -> SelectInfo :: select_info(), Reason :: term(). -cancel(#socket{ref = SockRef}, #select_info{tag = Tag, ref = Ref}) -> +cancel(#socket{ref = SockRef}, ?SELECT_INFO(Tag, Ref)) -> cancel(SockRef, Tag, Ref). |