About multiple threads

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
khauka
In need of some credit
In need of some credit
Posts: 4
Joined: Tue Jul 28, 2015 7:44 am

About multiple threads

Post by khauka »

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!
User avatar
doublemax
Moderator
Moderator
Posts: 19164
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: About multiple threads

Post by doublemax »

I want to pass a distrinct parameter to every thread that I have created.So which way is your recommendation?
As you usually derive your own class from wxThread, you can pass any parameter you like to its constructor.

If that's not what you mean, please explain a little bit more.
Use the source, Luke!
khauka
In need of some credit
In need of some credit
Posts: 4
Joined: Tue Jul 28, 2015 7:44 am

Re: About multiple threads

Post by khauka »

doublemax wrote:
I want to pass a distrinct parameter to every thread that I have created.So which way is your recommendation?
As you usually derive your own class from wxThread, you can pass any parameter you like to its constructor.

If that's not what you mean, please explain a little bit more.
Thx for your reply. And great minds think alike :lol:

I just wondered if may there are other better ways.