aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@gmail.com>2015-11-02 17:47:04 -0500
committerMarat Dukhan <maratek@gmail.com>2015-11-02 17:47:04 -0500
commite76282f42e5f5443dd07ca73452f3eb912e542e7 (patch)
tree7755cb5ef854eb4af2d39a22f6a33acd23099d9f /include
parentad0ca6ade44155d342d2480c579c143751d5891c (diff)
downloadpthreadpool-e76282f42e5f5443dd07ca73452f3eb912e542e7.tar.gz
Tiled 1D loops
Diffstat (limited to 'include')
-rw-r--r--include/pthreadpool.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pthreadpool.h b/include/pthreadpool.h
index 150e4ad..fa2bb1e 100644
--- a/include/pthreadpool.h
+++ b/include/pthreadpool.h
@@ -6,6 +6,7 @@
typedef struct pthreadpool* pthreadpool_t;
typedef void (*pthreadpool_function_1d_t)(void*, size_t);
+typedef void (*pthreadpool_function_1d_tiled_t)(void*, size_t, size_t);
typedef void (*pthreadpool_function_2d_t)(void*, size_t, size_t);
typedef void (*pthreadpool_function_2d_tiled_t)(void*, size_t, size_t, size_t, size_t);
typedef void (*pthreadpool_function_3d_t)(void*, size_t, size_t, size_t);
@@ -57,6 +58,13 @@ void pthreadpool_compute_1d(
void* argument,
size_t range);
+void pthreadpool_compute_1d_tiled(
+ pthreadpool_t threadpool,
+ pthreadpool_function_1d_tiled_t function,
+ void* argument,
+ size_t range,
+ size_t tile);
+
void pthreadpool_compute_2d(
pthreadpool_t threadpool,
pthreadpool_function_2d_t function,