Implement thread_new function

Issue #107 new
Patryk Kubiak created an issue

The function thread_new should be an simple interface, that will be available in the USER SPACE designed as part of POSIX modules for creating thread.

Prototype for the function:

extern thread_t thread_new( const char * Name , thread_attr_t Attributes , thread_function_t Function , void * Parameter );

The function should use:

extern oC_Thread_t              oC_Thread_New               ( oC_Thread_Priority_t Priority , oC_Int_t StackSize , void * Process , const char * Name , oC_Thread_Function_t Function , void * Parameter );

The stack size and priority should be given in thread_attr_t type. If no attribute will be given, it should create thread with default settings

Comments (1)

  1. Log in to comment