[Qt-creator] Disable linking against pthreads in OSX
eike.ziller at nokia.com
eike.ziller at nokia.com
Mon Jul 9 10:26:47 CEST 2012
On 28 Jun 2012, at 22:59, ext Mohammad Mirzadeh wrote:
> Hi,
Hi,
> I have recently started to develop non-qt projects in OSX using Qt Creator and have noticed (using the debugger) that the application is always run using multiple threads. When using the default GCC toolchains (which invokes llvm) this uses 4 threads and when using Clang toolchain (which invokes Clang) this uses 2 threads. My processor is a 3rd-gen core i5 that has two physical cores but with hyper threading it can run 4 threads (2 per core). I don't want any of that! I just want to be able to run on 1 thread.
>
> Note that I use the same code in linux (ubuntu) and it only runs it with one thread unless I use the -fopenmp flag and use appropriate OpenMP directives. What's worse is this multithreading behavior seems to mess with the dubber as well!
>
> Can someone please tell me how to disable this?
That doesn't sound like a Qt Creator question. Are you using qmake for your project? Then I'd try asking on the interest at qt-project.org mailing list.
Br, Eike
--
Eike Ziller
Principal Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator
mailing list