diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2015-02-04 12:03:36 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2015-02-04 12:03:36 +0000 |
| commit | fbf68e455a6ccb5d842b02e175960da8edc08c3a (patch) | |
| tree | 26d0b43630d8816e7e23af39bf6ef7f36b63bf62 /src/lqueue.erl | |
| parent | 0bbd9baaac321552b14afaeb5fc36bc44f0feef2 (diff) | |
| parent | 4dbe7eeba5b4f8a9657135f7d0930ff82c4c64b9 (diff) | |
| download | rabbitmq-server-git-fbf68e455a6ccb5d842b02e175960da8edc08c3a.tar.gz | |
Merge bug26579
Diffstat (limited to 'src/lqueue.erl')
| -rw-r--r-- | src/lqueue.erl | 4 |
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]). |
