Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3381c4a1
Commit
3381c4a1
authored
Jun 01, 2010
by
Sebastian Eichelbaum
Browse files
[CHANGE] - Lic now uses WSubject's ticket system for read-accessing the dataset list
parent
e306d5b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/modules/lic/WMLIC.cpp
src/modules/lic/WMLIC.cpp
+3
-5
No files found.
src/modules/lic/WMLIC.cpp
View file @
3381c4a1
...
...
@@ -228,18 +228,16 @@ boost::shared_ptr< WDataSetVector > WMLIC::searchVectorDS() const
return
result
;
}
WSubject
::
DatasetAccess
da
=
subject
->
getAccessObject
();
da
->
beginRead
();
// This lock gets unlocked if it is destroyed ( looses scope )
WSubject
::
DatasetSharedContainerType
::
ReadTicket
da
=
subject
->
getDatasets
();
for
(
std
::
vector
<
boost
::
shared_ptr
<
W
Data
S
et
>
>::
i
terator
it
=
da
->
get
().
begin
();
it
!=
da
->
get
().
end
();
++
it
)
for
(
WSubject
::
Data
s
et
ConstI
terator
it
=
da
->
get
().
begin
();
it
!=
da
->
get
().
end
();
++
it
)
{
if
(
(
*
it
)
->
isVectorDataSet
()
)
{
da
->
endRead
();
return
(
*
it
)
->
isVectorDataSet
();
}
}
da
->
endRead
();
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment