pmartin / pocketbook-demo

A few demos of C/C++ applications for Pocketbook Touch Lux ereaders
MIT License
65 stars 9 forks source link

Demo08 : pthreads #12

Closed pmartin closed 7 years ago

pmartin commented 7 years ago

A quick demo using pthreads to do some basic multi-threading + adding a mutex in the mix to ensure both threads don't access a shared variable at the same time.

As a sidenote : the task mecanism and functions in inkview.h seem more related to multi-processing than multi-threading => I'm guessing threads should prove more useful for what I have in mind next ;-) (And when I saw we had pthreads... Well \o/ )