Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
dff483fd
Commit
dff483fd
authored
Oct 18, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to CAF_ASSERT()
parent
8d93bbab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
libcaf_net/caf/net/stream_transport.hpp
libcaf_net/caf/net/stream_transport.hpp
+1
-4
libcaf_net/test/stream_transport.cpp
libcaf_net/test/stream_transport.cpp
+1
-2
No files found.
libcaf_net/caf/net/stream_transport.hpp
View file @
dff483fd
...
@@ -265,10 +265,7 @@ private:
...
@@ -265,10 +265,7 @@ private:
return
false
;
return
false
;
do
{
do
{
auto
&
buf
=
write_queue_
.
front
().
second
;
auto
&
buf
=
write_queue_
.
front
().
second
;
if
(
buf
.
empty
())
{
CAF_ASSERT
(
!
buf
.
empty
());
recycle
();
continue
;
}
auto
data
=
buf
.
data
()
+
written_
;
auto
data
=
buf
.
data
()
+
written_
;
auto
len
=
buf
.
size
()
-
written_
;
auto
len
=
buf
.
size
()
-
written_
;
auto
write_ret
=
write
(
handle_
,
make_span
(
data
,
len
));
auto
write_ret
=
write
(
handle_
,
make_span
(
data
,
len
));
...
...
libcaf_net/test/stream_transport.cpp
View file @
dff483fd
...
@@ -74,8 +74,7 @@ public:
...
@@ -74,8 +74,7 @@ public:
template
<
class
Parent
>
template
<
class
Parent
>
void
write_message
(
Parent
&
parent
,
void
write_message
(
Parent
&
parent
,
std
::
unique_ptr
<
endpoint_manager_queue
::
message
>
ptr
)
{
std
::
unique_ptr
<
endpoint_manager_queue
::
message
>
ptr
)
{
auto
header_buf
=
parent
.
next_header_buffer
();
parent
.
write_packet
(
ptr
->
payload
);
parent
.
write_packet
(
header_buf
,
ptr
->
payload
);
}
}
template
<
class
Parent
>
template
<
class
Parent
>
...
...
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