Skip to content

Commit

Permalink
Тип у метода push() в неблокирующей очереди
Browse files Browse the repository at this point in the history
enhorse#86
Убрал ошибку компиляции с возвращаемым типом.
  • Loading branch information
Evgeny-Mamaev authored and enhorse committed Aug 14, 2021
1 parent d8613d6 commit edb18dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ __busy spin__ – это техника, которую программисты
class NonBlockingStack<T> {
private final AtomicReference<Element> head = new AtomicReference<>(null);

Stack<T> push(final T value) {
NonBlockingStack<T> push(final T value) {
final Element current = new Element();
current.value = value;
Element recent;
Expand Down

0 comments on commit edb18dd

Please sign in to comment.