Re: [Mingw-w64-public] winpthreads issue

2011-08-16 Thread PcX
于 2011/8/16 15:53, Kai Tietz 写道: So, after long debugging and testing I finally found the cause. Well, I cleaned up winpthread-code a bit while debugging for it, and finally found that the underlying issue was to be found in pthread.h and the constant definition of PTHREAD_PROCESS_PRIVATE and PT

Re: [Mingw-w64-public] winpthreads issue

2011-08-16 Thread Kai Tietz
So, after long debugging and testing I finally found the cause. Well, I cleaned up winpthread-code a bit while debugging for it, and finally found that the underlying issue was to be found in pthread.h and the constant definition of PTHREAD_PROCESS_PRIVATE and PTHREAD_PROCESS_SHARED. Actual the v

Re: [Mingw-w64-public] winpthreads issue

2011-08-11 Thread NightStrike
On Thu, Aug 11, 2011 at 6:33 AM, Ruben Van Boxem wrote: > Thanks. Without a crash, it's hard to provide any more details. I'm > sure you're in a much better position to find what's going on. I just > tried to "reduce to a testcase" so to speak. You can attach with the debugger and see where it's

Re: [Mingw-w64-public] winpthreads issue

2011-08-11 Thread Kai Tietz
2011/8/11 Kai Tietz : > Hi Ruben, > > 2011/8/11 Ruben Van Boxem : >> Hi, >> >> In an effort to solve the issue(s) with winpthreads, I did the following: >> >> Using this source: >> #include >> #include >> #include >> >> int main (int argc, char *argv[]) >> { >> int nthreads, tid; >> /* Fork a te

Re: [Mingw-w64-public] winpthreads issue

2011-08-11 Thread Kai Tietz
Hi Ruben, 2011/8/11 Ruben Van Boxem : > Hi, > > In an effort to solve the issue(s) with winpthreads, I did the following: > > Using this source: > #include > #include > #include > > int main (int argc, char *argv[]) > { > int nthreads, tid; > /* Fork a team of threads giving them their own copi

Re: [Mingw-w64-public] winpthreads issue

2011-08-11 Thread Ruben Van Boxem
2011/8/11 Kai Tietz : > Hi Ruben, > > 2011/8/11 Ruben Van Boxem : >> Hi, >> >> In an effort to solve the issue(s) with winpthreads, I did the following: >> >> Using this source: >> #include >> #include >> #include >> >> int main (int argc, char *argv[]) >> { >> int nthreads, tid; >> /* Fork a te

Re: [Mingw-w64-public] winpthreads issue

2011-08-11 Thread PcX
于 2011/8/11 18:15, Ruben Van Boxem 写道: > Hi, > > In an effort to solve the issue(s) with winpthreads, I did the following: > > Using this source: > #include > #include > #include > > int main (int argc, char *argv[]) > { > int nthreads, tid; > /* Fork a team of threads giving them their own copies

[Mingw-w64-public] winpthreads issue

2011-08-11 Thread Ruben Van Boxem
Hi, In an effort to solve the issue(s) with winpthreads, I did the following: Using this source: #include #include #include int main (int argc, char *argv[]) { int nthreads, tid; /* Fork a team of threads giving them their own copies of variables */ #pragma omp parallel private(nthreads, tid)