You have a linear unordered list of elements, namely, in this case - FIFO
(we will not bother with the fact that such a data storage structure is a queue , we will call it a list).
One day you will need to search for an item in the list by value, but since the items in it are not ordered, then the search option is only one: complete list traversal elementwise (if, of course, without directly applying sorting before the search).
At each step of the search, you will have to check whether you go beyond the boundaries of your list, and only then compare the current list item with the desired one. There are several ways to verify this fact: one of them is to place a unique element at the end of the list, bumping into which you will be sure that you have reached the end of the list. It is necessary to ensure the uniqueness of this element. Exactly this element will be called a барьером
(i.e. you should not look further than that - you went around the whole list).
In your case with FIFO (First In, First Out)
will have to add the barrier element to the list most recently in connection with the bypass order of this list, and then, if you go around the list, check whether the current element is a barrier , i.e. you must know in advance the value of the barrier.