Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
26
Issues
26
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
a642858e
Commit
a642858e
authored
Mar 09, 2018
by
rna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use blocking Pipe_pull. Wake pipe on interrupt.
parent
d6bbe761
Pipeline
#2016
failed with stages
in 1 minute
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
prrt/proto/processes/dataTransmitter.c
prrt/proto/processes/dataTransmitter.c
+1
-1
prrt/proto/socket.c
prrt/proto/socket.c
+4
-0
No files found.
prrt/proto/processes/dataTransmitter.c
View file @
a642858e
...
...
@@ -131,7 +131,7 @@ void *send_data_loop(void *ptr) {
while
(
1
)
{
ListNode
*
job
;
do
{
job
=
Pipe_p
o
ll
(
sock_ptr
->
sendDataQueue
);
job
=
Pipe_p
u
ll
(
sock_ptr
->
sendDataQueue
);
if
(
PrrtSocket_closing
(
sock_ptr
))
{
if
(
block
!=
NULL
)
{
PrrtBlock_destroy
(
block
);
...
...
prrt/proto/socket.c
View file @
a642858e
...
...
@@ -380,6 +380,10 @@ int PrrtSocket_interrupt(PrrtSocket *s) {
PrrtReceiver_interrupt
(
s
->
receiver
);
}
if
(
s
->
sendDataQueue
!=
NULL
)
{
Pipe_wake
(
s
->
sendDataQueue
);
}
void
**
res
=
NULL
;
if
(
s
->
sendDataThread
!=
0
)
{
check
(
pthread_join
(
s
->
sendDataThread
,
res
)
==
0
,
"Join failed."
);
...
...
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