Multithreading stuff

Hello everyone.
I'd like to write a program which runs a thread in the background, which
runs a loop, accessing devices, and uses usleep inside the loop. I also
want a way to abort this thread when button is pressed. What is the best
(most efficient, most correct) way to do it?
What is the best way to run abortable background task using only what
Gtkmm provides?
There is no demand to run multiple tasks, only one.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]