wxThread or c++11 thread? Topic is solved
-
- Experienced Solver
- Posts: 96
- Joined: Thu Apr 17, 2014 10:10 am
wxThread or c++11 thread?
Hi! I have to write a software that must be very speed. I'll write this with thread for parallelism. In your opinion is better <thread> (C++11) or <wx/thread.h>? (The programm is for windows and I have to use wx for GUI principally)
I'm Italian but we can speak C++ 

Re: wxThread or c++11 thread?
From a performance point of view there is no difference. You can use whatever you prefer.
Use the source, Luke!
-
- Experienced Solver
- Posts: 96
- Joined: Thu Apr 17, 2014 10:10 am
Re: wxThread or c++11 thread?
I would stick to wxThread. Since it is a wrapper around other classes (pthread, Win Thread etc)
Using wxThread will make sure that your code will still compile when using an older compiler which does not support C++11 thread.
Also, I would expect that sometime in the future, wxThread will wrap std::thread (similar to wxString using std::{w}string)
Eran
Using wxThread will make sure that your code will still compile when using an older compiler which does not support C++11 thread.
Also, I would expect that sometime in the future, wxThread will wrap std::thread (similar to wxString using std::{w}string)
Eran
-
- Experienced Solver
- Posts: 96
- Joined: Thu Apr 17, 2014 10:10 am
Re: wxThread or c++11 thread?
I use VC++ 11 (2012) and it have c++11 and work without problem 

I'm Italian but we can speak C++ 
