Skip to content

Commit edb18dd

Browse files
Evgeny-Mamaevenhorse
authored andcommitted
Тип у метода push() в неблокирующей очереди
enhorse#86 Убрал ошибку компиляции с возвращаемым типом.
1 parent d8613d6 commit edb18dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ __busy spin__ – это техника, которую программисты
812812
class NonBlockingStack<T> {
813813
private final AtomicReference<Element> head = new AtomicReference<>(null);
814814

815-
Stack<T> push(final T value) {
815+
NonBlockingStack<T> push(final T value) {
816816
final Element current = new Element();
817817
current.value = value;
818818
Element recent;

0 commit comments

Comments
 (0)