Browse Source

Bugfixing

Jens
Jens Schuhmann 1 year ago
parent
commit
1e899d7e62

+ 2
- 2
src/bandit/Model/Generator/Generator1.java View File

@@ -53,7 +53,7 @@ public class Generator1 implements Runnable // Callable
laufend = true;
synchronized (LOCK)
{
LOCK.notify();
LOCK.notifyAll();
}
@@ -82,7 +82,7 @@ public class Generator1 implements Runnable // Callable
{
try
{
lg.info("WAIT");
lg.info("WAIT_Gen1");
LOCK.wait();
}
catch (InterruptedException ex)

+ 2
- 2
src/bandit/Model/Generator/Generator2.java View File

@@ -53,7 +53,7 @@ public class Generator2 implements Runnable // Callable
laufend = true;
synchronized (LOCK)
{
LOCK.notify();
LOCK.notifyAll();
}
@@ -82,7 +82,7 @@ public class Generator2 implements Runnable // Callable
{
try
{
lg.info("WAIT");
lg.info("WAIT_Gen2");
LOCK.wait();
}
catch (InterruptedException ex)

+ 2
- 2
src/bandit/Model/Generator/Generator3.java View File

@@ -53,7 +53,7 @@ public class Generator3 implements Runnable // Callable
laufend = true;
synchronized (LOCK)
{
LOCK.notify();
LOCK.notifyAll();
}
@@ -82,7 +82,7 @@ public class Generator3 implements Runnable // Callable
{
try
{
lg.info("WAIT");
lg.info("WAIT_Gen3");
LOCK.wait();
}
catch (InterruptedException ex)

+ 0
- 1
src/bandit/Model/Zahlengenerator.java View File

@@ -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 int wert;
private Flow.Subscription subscription;
private SubmissionPublisher<Integer[]> wertPublisher;


Loading…
Cancel
Save