Skip to content

Commit c87a4a3

Browse files
committed
Reduce locking and concurrency issues
Signed-off-by: christian.lutnik <[email protected]>
1 parent d30208b commit c87a4a3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/dev/openfeature/sdk/VmLensTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,31 @@ private void asomeMethod() throws InterruptedException {
3232
c.incrementAndGet();
3333
var client = api.getClient();
3434
var firstReady = new Awaitable();
35-
Thread first = new Thread() {
35+
Thread first = new Thread("test thread") {
3636
@Override
3737
public void run() {
3838
firstReady.wakeup();
3939
client.getStringValue("a", "a");
40-
client.getStringValue("a", "a");
40+
//client.getStringValue("a", "a");
4141
}
4242
};
4343

4444
first.start();
4545
firstReady.await();
4646

4747
client.addHooks(new Hook() {});
48-
client.addHooks(new Hook() {});
48+
//client.addHooks(new Hook() {});
4949

5050
first.join();
5151
}
5252
}
5353

54+
api.shutdown();
55+
5456
System.out.println("c = " + c);
5557
System.out.println("jaVar = " + jaVar);
5658

57-
Thread.sleep(5000);
58-
System.exit(0);
59+
//Thread.sleep(5000);
60+
//System.exit(0);
5961
}
6062
}

0 commit comments

Comments
 (0)