1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-18 19:06:18 -07:00

Clarifying comment about extra queue element

Copied from Perforce
 Change: 182119
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2013-05-23 19:04:42 +01:00
parent fc4d239543
commit af707b5d97

View file

@ -37,7 +37,8 @@ Res ABQInit(Arena arena, ABQ abq, void *owner, Count elements, Size elementSize)
AVER(abq != NULL);
AVER(elements > 0);
/* Necessary in order to be able to distinguish "empty" from "full" */
/* Allocate a dummy extra element in order to be able to distinguish
"empty" from "full" */
elements = elements + 1;
res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize),