Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx-ecpri
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
nexedi
trx-ecpri
Commits
f1e6b168
Commit
f1e6b168
authored
Jan 21, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No segfault when doing nothing
parent
097b23c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
trx_ecpri.c
trx_ecpri.c
+3
-1
No files found.
trx_ecpri.c
View file @
f1e6b168
...
...
@@ -34,7 +34,7 @@
#define DEBUG
//#define DISABLE_SEND
#define DISABLE_RECV
//
#define DISABLE_RECV
#include "utils.c"
#include "ring_buffer.c"
...
...
@@ -424,6 +424,7 @@ static void *encode_thread(void *p) {
// And if there are frames from trx_write callback to encode
to_write
=
rbuf_write_amount
(
&
tx_rbuf
);
to_read
=
rbuf_read_amount
(
&
trxw_rbuf
[
0
]);
usleep
(
1
);
if
(
!
to_write
||
!
to_read
)
continue
;
...
...
@@ -724,6 +725,7 @@ int start(TRXEcpriState * s) {
init_rbuf
(
&
rx_rbuf
,
"RX ring buffer"
,
s
->
txrx_buf_size
,
PACKET_SIZE
);
init_rbuf
(
&
tx_rbuf
,
"TX ring buffer"
,
s
->
txrx_buf_size
,
PACKET_SIZE
);
log_debug
(
"DEBUG"
,
"rbuf_read_amount(tx_rbuf) = %d"
,
rbuf_read_amount
(
&
tx_rbuf
));
for
(
int
i
=
0
;
i
<
s
->
tx_n_channel
;
i
++
)
{
char
name
[
256
];
...
...
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