Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1035564 // ICollab - interface to a multi-core processing helper (e.g. FastCollab)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (160L/2K).

interface ICollab extends Runnable {
  void addWork(Runnable work);
  void done();
  
  // informational
  int coresToUse();
  default bool singleCore() { ret coresToUse() == 1; }
}

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: 35 / 99
Version history: 15 change(s)
Referenced in: [show references]