Libraryless. Click here for Pure Java version (160L/2K).
1 | interface ICollab extends Runnable { |
2 | void addWork(Runnable work); |
3 | void done(); |
4 | |
5 | // informational |
6 | int coresToUse(); |
7 | default bool singleCore() { ret coresToUse() == 1; } |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035564 |
Snippet name: | ICollab - interface to a multi-core processing helper (e.g. FastCollab) |
Eternal ID of this version: | #1035564/16 |
Text MD5: | 3c05c60ce3c36f2eb7b8a01c189b3805 |
Transpilation MD5: | d29a778a3493472e837022c1a477a4c7 |
Author: | stefan |
Category: | javax / parallelism |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-19 00:40:57 |
Source code size: | 188 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 294 |
Version history: | 15 change(s) |
Referenced in: | [show references] |