Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Nicolas Pope
ftl
Commits
d9a6d7ec
Commit
d9a6d7ec
authored
4 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Allow frameset buffer adjustment
parent
abc89122
No related branches found
No related tags found
1 merge request
!316
Resolves #343 GUI and Frame Refactor
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/streams/include/ftl/streams/builder.hpp
+2
-3
2 additions, 3 deletions
components/streams/include/ftl/streams/builder.hpp
components/streams/src/receiver.cpp
+3
-3
3 additions, 3 deletions
components/streams/src/receiver.cpp
with
5 additions
and
6 deletions
components/streams/include/ftl/streams/builder.hpp
+
2
−
3
View file @
d9a6d7ec
...
...
@@ -32,6 +32,7 @@ class BaseBuilder : public ftl::data::Generator {
void
setID
(
uint32_t
id
)
{
id_
=
id
;
}
void
setPool
(
ftl
::
data
::
Pool
*
p
)
{
pool_
=
p
;
}
void
setBufferSize
(
size_t
s
)
{
bufferSize_
=
s
;
}
inline
ftl
::
Handle
onFrameSet
(
const
ftl
::
data
::
FrameSetCallback
&
cb
)
override
{
return
cb_
.
on
(
cb
);
}
...
...
@@ -51,6 +52,7 @@ class BaseBuilder : public ftl::data::Generator {
ftl
::
data
::
Pool
*
pool_
;
int
id_
;
size_t
size_
;
size_t
bufferSize_
=
1
;
ftl
::
Handler
<
const
ftl
::
data
::
FrameSetPtr
&>
cb_
;
ftl
::
data
::
ChangeType
ctype_
=
ftl
::
data
::
ChangeType
::
COMPLETED
;
};
...
...
@@ -139,8 +141,6 @@ class ForeignBuilder : public BaseBuilder {
LockedFrameSet
get
(
int64_t
timestamp
)
override
;
void
setBufferSize
(
size_t
n
)
{
bufferSize_
=
n
;
}
private:
std
::
list
<
std
::
shared_ptr
<
ftl
::
data
::
FrameSet
>>
framesets_
;
// Active framesets
//std::list<ftl::data::FrameSet*> allocated_; // Keep memory allocations
...
...
@@ -153,7 +153,6 @@ class ForeignBuilder : public BaseBuilder {
std
::
atomic
<
int
>
jobs_
;
volatile
bool
skip_
;
ftl
::
Handle
main_id_
;
size_t
bufferSize_
;
std
::
string
name_
;
...
...
This diff is collapsed.
Click to expand it.
components/streams/src/receiver.cpp
+
3
−
3
View file @
d9a6d7ec
...
...
@@ -37,12 +37,12 @@ Receiver::Receiver(nlohmann::json &config, ftl::data::Pool *p) : ftl::Configurab
builder_[i].setBufferSize(bsize);
}*/
/*
on("frameset_buffer_size", [this](
const ftl::config::Event &e
) {
on
(
"frameset_buffer_size"
,
[
this
]()
{
size_t
bsize
=
value
(
"frameset_buffer_size"
,
3
);
for
(
auto
&
i
:
builders_
)
{
i.second
.
setBufferSize(bsize);
i
.
second
->
setBufferSize
(
bsize
);
}
});
*/
});
on
(
"frame_mask"
,
[
this
]()
{
frame_mask_
=
value
(
"frame_mask"
,
0xFFFFFFFFu
);
...
...
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