Thread

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Thread

Re: Thread

by cpp4robots_admin » 10 Mar 2021 01:08

Hello Nam,

You can use the header file "EV3_Thread.h".

Code: Select all

#include <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.

Code: Select all

#include <pthread.h>
Such as function pthread_create.

Thread

by Nam Hoang » 11 Nov 2020 08:36

Currently I want to use some functions in the Thread section of Ev3 developed by you but because I use windows VS 2015 without <unistd.h> and <pthread.h> but <pthread.h> can only be installed VS's Nuget has <unistd.h>, I can't see how to safely install it.
Help me how to use EV3 thread.

Untitled.png
Untitled.png (2.57 KiB) Viewed 1186 times

Top