qwerty514 / EV3.c

A C library to progam your EV3
GNU General Public License v2.0
1 stars 0 forks source link

Multithreading Support #2

Open qwerty514 opened 8 years ago

qwerty514 commented 8 years ago

Multithreading support in the NXC way: tasks, ExitTo(), start, stop. Optionally Precedes(), and Follows(), but not necessary. These commands were never really useful, and were only the result of the architecture of the NXT VM.

Planning on using pthread, with an global array of structures containing a thread_id, a running boolean, and an function pointer, in order for the end-user to only need to use task ( = void* function) identifiers.

Easy-to-use mutex wrapper also needed.