summaryrefslogtreecommitdiff
path: root/src/common/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index 992e3e6c8..3b5ce7476 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -6,7 +6,7 @@
#include "../common/cbasetypes.h"
-typedef struct rAthread *rAthread;
+typedef struct rAthread rAthread;
typedef void* (*rAthreadProc)(void*);
typedef enum RATHREAD_PRIO {
@@ -24,7 +24,7 @@ typedef enum RATHREAD_PRIO {
*
* @return not NULL if success
*/
-rAthread rathread_create( rAthreadProc entryPoint, void *param );
+rAthread *rathread_create(rAthreadProc entryPoint, void *param);
/**
@@ -37,7 +37,7 @@ rAthread rathread_create( rAthreadProc entryPoint, void *param );
*
* @return not NULL if success
*/
-rAthread rathread_createEx( rAthreadProc entryPoint, void *param, size_t szStack, RATHREAD_PRIO prio );
+rAthread *rathread_createEx(rAthreadProc entryPoint, void *param, size_t szStack, RATHREAD_PRIO prio);
/**
@@ -47,7 +47,7 @@ rAthread rathread_createEx( rAthreadProc entryPoint, void *param, size_t szSta
*
* @param handle - thread to destroy.
*/
-void rathread_destroy ( rAthread handle );
+void rathread_destroy(rAthread *handle);
/**
@@ -58,7 +58,7 @@ void rathread_destroy ( rAthread handle );
*
* @return not NULL if success
*/
-rAthread rathread_self( );
+rAthread *rathread_self();
/**
@@ -80,7 +80,7 @@ int rathread_get_tid();
*
* @return true - if the given thread has been terminated.
*/
-bool rathread_wait( rAthread handle, void* *out_exitCode );
+bool rathread_wait(rAthread *handle, void **out_exitCode);
/**
@@ -89,7 +89,7 @@ bool rathread_wait( rAthread handle, void* *out_exitCode );
* @param handle - thread to set prio for
* @param rio - the priority (RAT_PRIO_LOW ... )
*/
-void rathread_prio_set( rAthread handle, RATHREAD_PRIO prio );
+void rathread_prio_set(rAthread *handle, RATHREAD_PRIO prio);
/**
@@ -97,7 +97,7 @@ void rathread_prio_set( rAthread handle, RATHREAD_PRIO prio );
*
* @param handle - the thread to get the prio for.
*/
-RATHREAD_PRIO rathread_prio_get( rAthread handle);
+RATHREAD_PRIO rathread_prio_get(rAthread *handle);
/**