Libraryless. Click here for Pure Java version (4671L/26K).
1 | static <A> void waitWhileEmpty(SelfNotifyingSet<A> set) ctex {
|
2 | if (set == null) ret; |
3 | synchronized(set) {
|
4 | while (set.isEmpty()) set.wait(); |
5 | } |
6 | } |
Began life as a copy of #1015312
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033402 |
| Snippet name: | waitWhileEmpty |
| Eternal ID of this version: | #1033402/3 |
| Text MD5: | b84b9f94e827a17fb5d9a320a0d8e6dc |
| Transpilation MD5: | 6e5ed874682692c125fd1c4a81c3e8f5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-27 04:33:11 |
| Source code size: | 157 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 369 / 471 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |