Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-stream-ch
Compare revisions
3bdf48f5401b54b582c2d28b71c9e596bcc6c090 to ad0f3e360023e023cd5cfa312db2dd3c441f8b66
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cellframe/libdap-stream-ch
Select target project
No results found
ad0f3e360023e023cd5cfa312db2dd3c441f8b66
Select Git revision
Branches
1.1-11-Win
feature-2307
feature-client-new
master
support_2719-1
Swap
Target
cellframe/libdap-stream-ch
Select target project
cellframe/libdap-stream-ch
1 result
3bdf48f5401b54b582c2d28b71c9e596bcc6c090
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
[+] Activate write flag
· ad0f3e36
Dmitriy A. Gerasimov
authored
5 years ago
ad0f3e36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_stream_ch_pkt.c
+5
-0
5 additions, 0 deletions
dap_stream_ch_pkt.c
with
5 additions
and
0 deletions
dap_stream_ch_pkt.c
View file @
ad0f3e36
...
...
@@ -75,6 +75,10 @@ void dap_stream_ch_pkt_deinit()
*/
size_t
dap_stream_ch_pkt_write
(
struct
dap_stream_ch
*
a_ch
,
uint8_t
a_type
,
const
void
*
a_data
,
size_t
a_data_size
)
{
if
(
!
a_data_size
){
log_it
(
L_WARNING
,
"Zero data size to write out in channel"
);
return
0
;
}
pthread_mutex_lock
(
&
a_ch
->
mutex
);
//log_it(L_DEBUG,"Output: Has %u bytes of %c type for %c channel id",data_size, (char)type, (char) ch->proc->id );
...
...
@@ -105,6 +109,7 @@ size_t dap_stream_ch_pkt_write(struct dap_stream_ch * a_ch, uint8_t a_type, con
size_t
l_ret
=
dap_stream_pkt_write
(
a_ch
->
stream
,
a_ch
->
buf
,
a_data_size
+
sizeof
(
l_hdr
));
a_ch
->
stat
.
bytes_write
+=
a_data_size
;
a_ch
->
ready_to_write
=
true
;
pthread_mutex_unlock
(
&
a_ch
->
mutex
);
return
l_ret
;
...
...
This diff is collapsed.
Click to expand it.