summaryrefslogtreecommitdiff
path: root/src/lqueue.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2015-02-16 12:05:57 +0000
committerSimon MacMullen <simon@rabbitmq.com>2015-02-16 12:05:57 +0000
commit9631d4ba17e0700430cf1ac8c1754d5030432bf3 (patch)
tree522605858824ff4cb5510632d6b2e9c55a779af3 /src/lqueue.erl
parent5513bea062f194dac2d33076eccec4dfc53b0283 (diff)
parent6f13eca56e4bcaeb963f1269ecf63ba307c98198 (diff)
downloadrabbitmq-server-git-9631d4ba17e0700430cf1ac8c1754d5030432bf3.tar.gz
stable to default
Diffstat (limited to 'src/lqueue.erl')
-rw-r--r--src/lqueue.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lqueue.erl b/src/lqueue.erl
index 62f60d5ffb..941941de2e 100644
--- a/src/lqueue.erl
+++ b/src/lqueue.erl
@@ -16,6 +16,10 @@
-module(lqueue).
+%% lqueue implements a subset of Erlang's queue module. lqueues
+%% maintain their own length, so lqueue:len/1
+%% is an O(1) operation, in contrast with queue:len/1 which is O(n).
+
-export([new/0, is_empty/1, len/1, in/2, in_r/2, out/1, out_r/1, join/2,
foldl/3, foldr/3, from_list/1, to_list/1, peek/1, peek_r/1]).