diff options
| author | Richard Brooksby | 2013-05-23 19:04:42 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2013-05-23 19:04:42 +0100 |
| commit | af707b5d97cf96e7fe847790fa408ff9af889587 (patch) | |
| tree | 8403c047af3fa3c98f2d089ef7c81ea6d7314ee7 /mps/code | |
| parent | fc4d239543e08b20a3ca3cf63b82cb6f906f8026 (diff) | |
| download | emacs-af707b5d97cf96e7fe847790fa408ff9af889587.tar.gz emacs-af707b5d97cf96e7fe847790fa408ff9af889587.zip | |
Clarifying comment about extra queue element
Copied from Perforce
Change: 182119
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/abq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mps/code/abq.c b/mps/code/abq.c index 1ba82074c91..cee37b32989 100644 --- a/mps/code/abq.c +++ b/mps/code/abq.c | |||
| @@ -37,7 +37,8 @@ Res ABQInit(Arena arena, ABQ abq, void *owner, Count elements, Size elementSize) | |||
| 37 | AVER(abq != NULL); | 37 | AVER(abq != NULL); |
| 38 | AVER(elements > 0); | 38 | AVER(elements > 0); |
| 39 | 39 | ||
| 40 | /* Necessary in order to be able to distinguish "empty" from "full" */ | 40 | /* Allocate a dummy extra element in order to be able to distinguish |
| 41 | "empty" from "full" */ | ||
| 41 | elements = elements + 1; | 42 | elements = elements + 1; |
| 42 | 43 | ||
| 43 | res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize), | 44 | res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize), |