aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/ets.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-06-08 10:06:52 +0000
committerErlang/OTP <[email protected]>2010-06-08 10:06:52 +0000
commit80bcd93f3405be5baa8106250c5bcae6cbbdc3df (patch)
tree34e8cff9f5252d45543d5c5db3d2afdc9ef30141 /lib/stdlib/src/ets.erl
parentb10f0358c5286300dc9c861c6d45a10222bba3c2 (diff)
parent5a1b230f3ecb6d8b4f88e6df8fd33e3707f80cd8 (diff)
downloadotp-80bcd93f3405be5baa8106250c5bcae6cbbdc3df.tar.gz
otp-80bcd93f3405be5baa8106250c5bcae6cbbdc3df.tar.bz2
otp-80bcd93f3405be5baa8106250c5bcae6cbbdc3df.zip
Merge branch 'ks/ets-tid-type' into dev
* ks/ets-tid-type: Remove tid() from the predefined builtin types. OTP-8687 ks/ets-tid-type The predefined builtin type tid() has been removed. Instead, ets:tid() should be used.
Diffstat (limited to 'lib/stdlib/src/ets.erl')
-rw-r--r--lib/stdlib/src/ets.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl
index b0a197d784..1d033f6f7b 100644
--- a/lib/stdlib/src/ets.erl
+++ b/lib/stdlib/src/ets.erl
@@ -42,12 +42,15 @@
-export([i/0, i/1, i/2, i/3]).
--export_type([tab/0]).
+-export_type([tab/0, tid/0]).
-%%------------------------------------------------------------------------------
+%%-----------------------------------------------------------------------------
-type tab() :: atom() | tid().
+%% a similar definition is also in erl_types
+-opaque tid() :: integer().
+
-type ext_info() :: 'md5sum' | 'object_count'.
-type protection() :: 'private' | 'protected' | 'public'.
-type type() :: 'bag' | 'duplicate_bag' | 'ordered_set' | 'set'.
@@ -65,7 +68,7 @@
-type match_pattern() :: atom() | tuple().
-type match_specs() :: [{match_pattern(), [_], [_]}].
-%%------------------------------------------------------------------------------
+%%-----------------------------------------------------------------------------
%% The following functions used to be found in this module, but
%% are now BIFs (i.e. implemented in C).