Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/klib/blob/master/kthread.h # klib [Ported from github.com/attractivechaos/klib] added block arena Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `klib / kthread.h` 19 lines ยท 444 bytes Raw Blame History 1 #ifndef KTHREAD_H 2 #define KTHREAD_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 void kt_for(int n_threads, void (*func)(void*,long,int), void *data, long n); 9 void kt_pipeline(int n_threads, void *(*func)(void*, int, void*), void *shared_data, int n_steps); 10 11 void *kt_forpool_init(int n_threads); 12 void kt_forpool_destroy(void *_fp); 13 void kt_forpool(void *_fp, void (*func)(void*,long,int), void *data, long n); 14 15 #ifdef __cplusplus 16 } 17 #endif 18 19 #endif