于 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
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
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
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
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
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
于 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
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)