Hi, everyone, I'm a neo to wxWidgtes.
Here is my question of a Novice:
I want to pass a distrinct parameter to every thread that I have created.So which way is your recommendation?
thx!
About multiple threads
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
Re: About multiple threads
As you usually derive your own class from wxThread, you can pass any parameter you like to its constructor.I want to pass a distrinct parameter to every thread that I have created.So which way is your recommendation?
If that's not what you mean, please explain a little bit more.
Use the source, Luke!
-
- In need of some credit
- Posts: 4
- Joined: Tue Jul 28, 2015 7:44 am
Re: About multiple threads
Thx for your reply. And great minds think alikedoublemax wrote:As you usually derive your own class from wxThread, you can pass any parameter you like to its constructor.I want to pass a distrinct parameter to every thread that I have created.So which way is your recommendation?
If that's not what you mean, please explain a little bit more.
I just wondered if may there are other better ways.