summaryrefslogtreecommitdiff
path: root/lib/msk40sync.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
commit69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch)
treeebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/msk40sync.f90
parent3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff)
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg' with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'lib/msk40sync.f90')
-rw-r--r--lib/msk40sync.f9012
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/msk40sync.f90 b/lib/msk40sync.f90
index 5a2ca1e7..888673f7 100644
--- a/lib/msk40sync.f90
+++ b/lib/msk40sync.f90
@@ -27,6 +27,13 @@ subroutine msk40sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
data s8r/1,0,1,1,0,0,0,1/
save first,cb,fs,pi,twopi,dt,s8r,pp
+ interface
+ subroutine wsjt_tsan_acquire_msk40_sync() bind(C)
+ end subroutine wsjt_tsan_acquire_msk40_sync
+ subroutine wsjt_tsan_release_msk40_sync() bind(C)
+ end subroutine wsjt_tsan_release_msk40_sync
+ end interface
+
if(first) then
pi=4.0*atan(1.0)
twopi=8.0*atan(1.0)
@@ -67,10 +74,13 @@ subroutine msk40sync(cdat,nframes,ntol,delf,navmask,npeaks,fc,fest, &
if2=if1+nstep-1
if(id.eq.nthreads) if2=nint(ntol/delf)
call msk40_freq_search(cdat,fc,if1,if2,delf,nframes,navmask,cb, &
- cdat2(1,id),xm(id),bf(id),cs(1,id),xccs(1,id))
+ cdat2(1,id),xm(id),bf(id),cs(1,id),xccs(:,id))
+ ! GCC TSan does not observe libgomp's implicit barrier.
+ call wsjt_tsan_release_msk40_sync()
! write(73,3002) id,if1,if2,nfreqs,nthreads,bf(id),xm(id)
!3002 format(5i5,2f10.3)
!$OMP END PARALLEL
+ call wsjt_tsan_acquire_msk40_sync()
xmax=xm(1)
fest=fc+bf(1)