wijuk pruksuriya <[email protected]> wrote: > > I have problem about Update() pipeline in pthread. > > rc = pthread_create(&threads[0], NULL, calTransformPipeline, (void *)&td[0]); > // first thread > > rc = pthread_create(&threads[1], NULL, calTransformPipeline, (void *)&td[1]); > // second thread > > calTransformPipeline() is function to calculate affine-transform (like a > EstimateAffineTransformationExample). but when I use pthread is error > Segmentation fault (core dumped). > > *if second thread not use update() it will ok. > > first time I think because of OTB use auto mutithread. therefore, I set > ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS = 1 but It still didn't work. >
Hi, Can you give some more details like the signature of calTransformPipeline or what td[] look like? Have you got any shared variables between the threads? Jordi -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
