Well, you can handle posix threads with the pthread.h library, but
that is in C, so you would need to create some cl***** to fully "****t"
it to C++. So basically, you should google pthread.h (not that hard to
find).
A little googling returns
http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
On 11 mar, 11:39, Hal Vaughan <h...@[EMAIL PROTECTED]
> wrote:
> As I mentioned in another post, I'm brand new to C++ but used to Java
and
> Perl. The program I'm working on will need to fork a thread and that
> thread will be reading anything that comes in from the serial ****t and
> storing incoming information in other variables that can be accessed
> elsewhere. I also want to be able to stop that extra thread when it's
time
> by changing a boolean to tell it to stop running.
>
> Can anyone recommend a good tutorial on threads in C++? I'd like to
know
> about starting, stoping, and sharing variables with other threads.
While I
> haven't used pointers (none in Java!), if I need to use pointers for
memory
> locations instead of variables, I think I can deal with that.
>
> Thanks!
>
> Hal


|