mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added pthread cancelation points to pipe
This commit is contained in:
parent
0cc67a892c
commit
5320830b13
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,7 @@ retry: reason = sample_fscan(stdin, s, NULL);
|
|||
}
|
||||
|
||||
node_write(node, smps, node->vectorize);
|
||||
pthread_testcancel();
|
||||
}
|
||||
|
||||
killme: pthread_kill(ptid, SIGINT);
|
||||
|
@ -157,6 +158,7 @@ static void * recv_loop(void *ctx)
|
|||
sample_fprint(stdout, s, SAMPLE_ALL);
|
||||
fflush(stdout);
|
||||
}
|
||||
pthread_testcancel();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue