aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/init.h
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-05-08 10:07:10 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-06-10 18:42:23 +0300
commit911861692e36af9a76ee8b77537eb0957714e403 (patch)
tree11c88dc5e7b5d3bdc3d66779cffeb3ebfa68c482 /include/odp/api/init.h
parent6891037b0ccb4e2075d9e9faaa8568c95119f565 (diff)
api: init: added thread type to local init
User needs to select the thread type (worker or control) of the initialized thread. Implementation may reserve HW direct access only to worker threads, while control threads share HW access, etc. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/init.h')
-rw-r--r--include/odp/api/init.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/odp/api/init.h b/include/odp/api/init.h
index c3101d9ed..ab12a80a6 100644
--- a/include/odp/api/init.h
+++ b/include/odp/api/init.h
@@ -30,6 +30,7 @@ extern "C" {
#include <odp/std_types.h>
#include <odp/hints.h>
+#include <odp/thread.h>
/** @defgroup odp_initialization ODP INITIALIZATION
* Initialisation operations.
@@ -175,13 +176,15 @@ int odp_term_global(void);
* All threads must call this function before calling any other ODP API
* functions.
*
+ * @param thr_type Thread type
+ *
* @retval 0 on success
* @retval <0 on failure
*
* @see odp_term_local()
* @see odp_init_global() which must have been called prior to this.
*/
-int odp_init_local(void);
+int odp_init_local(odp_thread_type_t thr_type);
/**
* Thread local ODP termination