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/ )
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 hadpthreads
... Well \o/ )