Are there any example of this using threads? I have used threads before in C, but never C++. I just need a simple example of how a program looks that starts a thread.
Thanks,
Jeff Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the demo directory, there is an example, tcpthread.cpp. Basically, one subclasses a "Thread" base class and impliments a "Run" method for it. One then constructs the object and calls the "Start" member. Some example of this can also be found in the code of the ACS project (http://www.bayonne.cx)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are there any example of this using threads? I have used threads before in C, but never C++. I just need a simple example of how a program looks that starts a thread.
Thanks,
Jeff Davis
In the demo directory, there is an example, tcpthread.cpp. Basically, one subclasses a "Thread" base class and impliments a "Run" method for it. One then constructs the object and calls the "Start" member. Some example of this can also be found in the code of the ACS project (http://www.bayonne.cx)