Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
e2a02d61
Commit
e2a02d61
authored
14 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1660: do not use mainLock() anymore to be able to use older casacore
parent
7713152b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCS/MSLofar/include/MSLofar/MSLofar.h
+1
-0
1 addition, 0 deletions
LCS/MSLofar/include/MSLofar/MSLofar.h
LCS/MSLofar/src/MSLofar.cc
+15
-7
15 additions, 7 deletions
LCS/MSLofar/src/MSLofar.cc
with
16 additions
and
7 deletions
LCS/MSLofar/include/MSLofar/MSLofar.h
+
1
−
0
View file @
e2a02d61
...
...
@@ -136,6 +136,7 @@ namespace LOFAR {
MSStation
station_p
;
MSAntennaField
antennaField_p
;
MSElementFailure
elementFailure_p
;
casa
::
TableLock
mainLock_p
;
};
...
...
This diff is collapsed.
Click to expand it.
LCS/MSLofar/src/MSLofar.cc
+
15
−
7
View file @
e2a02d61
...
...
@@ -38,6 +38,7 @@ namespace LOFAR {
TableOption
option
)
:
MeasurementSet
(
tableName
,
option
)
{
mainLock_p
=
TableLock
(
TableLock
::
AutoNoReadLocking
);
initRefs
();
}
...
...
@@ -46,29 +47,36 @@ namespace LOFAR {
TableOption
option
)
:
MeasurementSet
(
tableName
,
lockOptions
,
option
)
{
mainLock_p
=
lockOptions
;
initRefs
();
}
MSLofar
::
MSLofar
(
SetupNewTable
&
newTab
,
uInt
nrrow
,
Bool
initialize
)
:
MeasurementSet
(
newTab
,
nrrow
,
initialize
)
{}
{
mainLock_p
=
TableLock
(
TableLock
::
AutoNoReadLocking
);
}
MSLofar
::
MSLofar
(
SetupNewTable
&
newTab
,
const
TableLock
&
lockOptions
,
uInt
nrrow
,
Bool
initialize
)
:
MeasurementSet
(
newTab
,
lockOptions
,
nrrow
,
initialize
)
{}
{
mainLock_p
=
lockOptions
;
}
MSLofar
::
MSLofar
(
const
Table
&
table
)
:
MeasurementSet
(
table
)
{
mainLock_p
=
TableLock
(
TableLock
::
AutoNoReadLocking
);
initRefs
();
}
MSLofar
::
MSLofar
(
const
MSLofar
&
other
)
:
MeasurementSet
(
other
)
{
mainLock_p
=
TableLock
(
TableLock
::
AutoNoReadLocking
);
if
(
!
isNull
())
{
initRefs
();
}
...
...
@@ -145,24 +153,24 @@ namespace LOFAR {
if
(
this
->
tableOption
()
!=
Table
::
Scratch
)
{
if
(
this
->
keywordSet
().
isDefined
(
"ANTENNA"
))
{
antenna_p
=
MSLofarAntenna
(
this
->
keywordSet
().
asTable
(
"ANTENNA"
,
mainLock
()
));
(
"ANTENNA"
,
mainLock
_p
));
}
if
(
this
->
keywordSet
().
isDefined
(
"OBSERVATION"
))
{
observation_p
=
MSLofarObservation
(
this
->
keywordSet
().
asTable
(
"OBSERVATION"
,
mainLock
()
));
(
"OBSERVATION"
,
mainLock
_p
));
}
if
(
this
->
keywordSet
().
isDefined
(
"LOFAR_STATION"
))
{
station_p
=
MSStation
(
this
->
keywordSet
().
asTable
(
"LOFAR_STATION"
,
mainLock
()
));
(
"LOFAR_STATION"
,
mainLock
_p
));
}
if
(
this
->
keywordSet
().
isDefined
(
"LOFAR_ANTENNA_FIELD"
))
{
antennaField_p
=
MSAntennaField
(
this
->
keywordSet
().
asTable
(
"LOFAR_ANTENNA_FIELD"
,
mainLock
()
));
(
"LOFAR_ANTENNA_FIELD"
,
mainLock
_p
));
}
if
(
this
->
keywordSet
().
isDefined
(
"LOFAR_ELEMENT_FAILURE"
))
{
elementFailure_p
=
MSElementFailure
(
this
->
keywordSet
().
asTable
(
"LOFAR_ELEMENT_FAILURE"
,
mainLock
()
));
mainLock
_p
));
}
}
else
{
// It's scratch...don't bother about the lock as
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment