From 45f8ea3525179424ca653de004afa214b207787e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eckl=2C=20M=C3=A1t=C3=A9?= <ecklm@sch.bme.hu> Date: Tue, 27 Oct 2015 00:04:29 +0100 Subject: [PATCH] =?UTF-8?q?Apr=C3=B3s=C3=A1g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 5. labor/Producer/src/Fifo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5. labor/Producer/src/Fifo.java b/5. labor/Producer/src/Fifo.java index 6891b25..a70c379 100644 --- a/5. labor/Producer/src/Fifo.java +++ b/5. labor/Producer/src/Fifo.java @@ -16,7 +16,7 @@ public class Fifo{ System.currentTimeMillis() % 10000); } - synchronized String get() throws InterruptedException + public synchronized String get() throws InterruptedException { System.out.println("get: " + Thread.currentThread()); while(s.size()<=0) -- GitLab