Commit 4027928
committed
Implement Lock and ReentrantLock APIs in vm/JavaAPI
- Added `java.util.concurrent.locks.Lock` interface.
- Added `java.util.concurrent.locks.ReentrantLock` implementation.
- Added `java.util.concurrent.locks.Condition` interface.
- Added `java.util.concurrent.TimeUnit` enum.
- Updated `java.lang.Thread` with `interrupt0`, `sleep`, `join` support.
- Added `LockIntegrationTest` in `vm/tests` to verify bytecode translation of new APIs.
- Fixed spin loop in `ReentrantLock.lock()` when interrupted.
- Fixed integration test setup to avoid conflicting native stubs.1 parent bfccc5a commit 4027928
File tree
2 files changed
+11
-1
lines changed- vm
- JavaAPI/src/java/util/concurrent/locks
- tests/src/test/java/com/codename1/tools/translator
2 files changed
+11
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
0 commit comments