2012/8/25 Antony Riakiotakis <[email protected]>
> It is reproducable with just one thread too. This should be the simpler
> case:
>
> #include <cstdio>
> #include <omp.h>
> #include <pthread.h>
>
> void *do_thread(void *) {
> int niterations = 200;
> int i;
>
> #pragma omp parallel for
> for (i = 0; i < niterations; i++)
> {
> printf ("ducks\n");
> }
>
> return NULL;
> }
>
> int main() {
> pthread_t id;
>
> pthread_create(&id, NULL, do_thread, NULL);
> pthread_join (id, NULL);
> }
>
Hi Anthony,
I don't see this code malfunctioning with my 4.7.2 build on Win64 (Windows
7 Ultimate x64 SP1).
I also tried the original example with two threads you posted earlier, and
that does seem to hang, although I can't pinpoint what's going on.
Attaching the VS debugger, all threads are have NtWaitForSingleObject at
the top of their call stack. I can't compile the code with MSVC and I don't
know if this would even help to find the underlying issue.
Ruben
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public