Browse Source

Bugfixing

Jens
Jens Schuhmann 1 year ago
parent
commit
1e899d7e62

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

laufend = true; laufend = true;
synchronized (LOCK) synchronized (LOCK)
{ {
LOCK.notify();
LOCK.notifyAll();
} }
{ {
try try
{ {
lg.info("WAIT");
lg.info("WAIT_Gen1");
LOCK.wait(); LOCK.wait();
} }
catch (InterruptedException ex) catch (InterruptedException ex)

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

laufend = true; laufend = true;
synchronized (LOCK) synchronized (LOCK)
{ {
LOCK.notify();
LOCK.notifyAll();
} }
{ {
try try
{ {
lg.info("WAIT");
lg.info("WAIT_Gen2");
LOCK.wait(); LOCK.wait();
} }
catch (InterruptedException ex) catch (InterruptedException ex)

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

laufend = true; laufend = true;
synchronized (LOCK) synchronized (LOCK)
{ {
LOCK.notify();
LOCK.notifyAll();
} }
{ {
try try
{ {
lg.info("WAIT");
lg.info("WAIT_Gen3");
LOCK.wait(); LOCK.wait();
} }
catch (InterruptedException ex) catch (InterruptedException ex)

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

{ {
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…
Cancel
Save