Creates a thread with the given (Size) stack size in bytes, and
the given (Prio) priority. The task will execute a call to the
procedure whose address is given by Code. This procedure has
the prototype
void thread_code (void *id, void *parm);
where id is the id of the created task, and parm is the parameter
passed to Create_Thread. The called procedure is the body of the
code for the task, the task will be automatically terminated when
the procedure returns.
This function returns the Ada Id of the created task that can then be
used as a parameter to the procedures below.
C declaration:
extern void *__gnat_create_thread
(void (*code)(void *, void *), void *parm, int size, int prio);