GomSpace/libcsp — Issue #17: Generic Task Interface
Author: johandc
Created: 2011-11-22 08:48:40+00:00
State: open
Labels: Feature, Medium

Currently we have two different task interfaces:

```
#ifndef CSP_WINDOWS
int csp_thread_create(csp_thread_return_t (* routine)(void *), const signed char * const thread_name, unsigned short stack_depth, void * parameters, unsigned int priority, csp_thread_handle_t * handle);
#else
int csp_thread_create(csp_thread_return_t (* routine)(void *)__attribute__((stdcall)), const signed char * const thread_name, unsigned short stack_depth, void * parameters, unsigned int priority, csp_thread_handle_t * handle);
#endif
```

We should define a CSP_TASK or CSP_THREAD macro instead that generates the right function prototype.