Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
ChimeraTK Mirror
ApplicationCore
Commits
fa74591a
Commit
fa74591a
authored
4 years ago
by
Christoph Kampmeyer
Browse files
Options
Downloads
Patches
Plain Diff
wip: Remove functions from ConstantAccessor
parent
9011686a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/ConstantAccessor.h
+3
-15
3 additions, 15 deletions
include/ConstantAccessor.h
with
3 additions
and
15 deletions
include/ConstantAccessor.h
+
3
−
15
View file @
fa74591a
...
...
@@ -31,7 +31,7 @@ namespace ChimeraTK {
~
ConstantAccessor
()
{
this
->
shutdown
();
}
void
doReadTransfer
()
override
{
void
doReadTransfer
Synchronously
()
override
{
if
(
firstRead
)
{
firstRead
=
false
;
return
;
...
...
@@ -42,18 +42,10 @@ namespace ChimeraTK {
throw
boost
::
thread_interrupted
();
}
bool
doReadTransferNonBlocking
()
override
{
if
(
firstRead
)
{
firstRead
=
false
;
return
true
;
}
return
false
;
void
doPostRead
(
TransferType
/*type*/
,
bool
/* hasNewData */
)
override
{
ChimeraTK
::
NDRegisterAccessor
<
UserType
>::
buffer_2D
[
0
]
=
_value
;
}
bool
doReadTransferLatest
()
override
{
return
doReadTransferNonBlocking
();
}
void
doPostRead
(
TransferType
/*type*/
,
bool
/* hasNewData */
)
override
{
ChimeraTK
::
NDRegisterAccessor
<
UserType
>::
buffer_2D
[
0
]
=
_value
;
}
bool
doWriteTransfer
(
ChimeraTK
::
VersionNumber
/*versionNumber*/
=
{})
override
{
return
true
;
}
bool
mayReplaceOther
(
const
boost
::
shared_ptr
<
ChimeraTK
::
TransferElement
const
>&
)
const
override
{
...
...
@@ -72,16 +64,12 @@ namespace ChimeraTK {
std
::
list
<
boost
::
shared_ptr
<
ChimeraTK
::
TransferElement
>>
getInternalElements
()
override
{
return
{};
}
AccessModeFlags
getAccessModeFlags
()
const
override
{
return
{};
}
void
interrupt
()
override
{
if
(
isInterrupted
)
return
;
promise
.
set_value
();
isInterrupted
=
true
;
}
VersionNumber
getVersionNumber
()
const
override
{
return
versionNumber
;
}
protected
:
std
::
vector
<
UserType
>
_value
;
...
...
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