Bugfixing
This commit is contained in:
parent
6ae236facd
commit
1e899d7e62
@ -53,7 +53,7 @@ public class Generator1 implements Runnable // Callable
|
|||||||
laufend = true;
|
laufend = true;
|
||||||
synchronized (LOCK)
|
synchronized (LOCK)
|
||||||
{
|
{
|
||||||
LOCK.notify();
|
LOCK.notifyAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public class Generator1 implements Runnable // Callable
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lg.info("WAIT");
|
lg.info("WAIT_Gen1");
|
||||||
LOCK.wait();
|
LOCK.wait();
|
||||||
}
|
}
|
||||||
catch (InterruptedException ex)
|
catch (InterruptedException ex)
|
||||||
|
@ -53,7 +53,7 @@ public class Generator2 implements Runnable // Callable
|
|||||||
laufend = true;
|
laufend = true;
|
||||||
synchronized (LOCK)
|
synchronized (LOCK)
|
||||||
{
|
{
|
||||||
LOCK.notify();
|
LOCK.notifyAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public class Generator2 implements Runnable // Callable
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lg.info("WAIT");
|
lg.info("WAIT_Gen2");
|
||||||
LOCK.wait();
|
LOCK.wait();
|
||||||
}
|
}
|
||||||
catch (InterruptedException ex)
|
catch (InterruptedException ex)
|
||||||
|
@ -53,7 +53,7 @@ public class Generator3 implements Runnable // Callable
|
|||||||
laufend = true;
|
laufend = true;
|
||||||
synchronized (LOCK)
|
synchronized (LOCK)
|
||||||
{
|
{
|
||||||
LOCK.notify();
|
LOCK.notifyAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public class Generator3 implements Runnable // Callable
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lg.info("WAIT");
|
lg.info("WAIT_Gen3");
|
||||||
LOCK.wait();
|
LOCK.wait();
|
||||||
}
|
}
|
||||||
catch (InterruptedException ex)
|
catch (InterruptedException ex)
|
||||||
|
@ -25,7 +25,6 @@ public class Zahlengenerator implements Subscriber<Integer[]> // Callable
|
|||||||
{
|
{
|
||||||
private static Logger lg = OhmLogger.getLogger(); //Logger sollten immer static sein da sie für alle instanzen loggs ausführen
|
private static Logger lg = OhmLogger.getLogger(); //Logger sollten immer static sein da sie für alle instanzen loggs ausführen
|
||||||
|
|
||||||
private int wert;
|
|
||||||
private Flow.Subscription subscription;
|
private Flow.Subscription subscription;
|
||||||
private SubmissionPublisher<Integer[]> wertPublisher;
|
private SubmissionPublisher<Integer[]> wertPublisher;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user