by cpp4robots_admin » 10 Mar 2021 01:08
Hello Nam,
You can use the header file "
EV3_Thread.h".
There are functions as
CreateThread,
EV3_Sleep or synchronization functions
CREATE_MUTEX,
CREATE_EVENT,...etc.
You can also use directly Linux functions from header file
pthread.h.
Such as function
pthread_create.
Hello Nam,
You can use the header file "[i]EV3_Thread.h[/i]".
[code]#include <EV3_Thread.h>[/code]
There are functions as [i]CreateThread[/i], [i]EV3_Sleep[/i] or synchronization functions [i]CREATE_MUTEX[/i], [i]CREATE_EVENT[/i],...etc.
You can also use directly Linux functions from header file [i]pthread.h[/i].
[code]#include <pthread.h>[/code]
Such as function [i]pthread_create[/i].