On 08/03/2016 03:41 PM, Nicolas George wrote:
Le sextidi 16 thermidor, an CCXXIV, sebechlebsky...@gmail.com a écrit :
+if (ctx->termination_requested)
+return 1;
This is a common misconception: volatile is not enough for thread
communication. IIUC, volatile forces the compiler to
On Wed, Aug 03, 2016 at 03:41:14PM +0200, Nicolas George wrote:
> Le sextidi 16 thermidor, an CCXXIV, sebechlebsky...@gmail.com a écrit :
> > From: Jan Sebechlebsky
[...]
> > +ret = pthread_tryjoin_np( fifo->writer_thread, NULL);
>
> This function is a GNU extension (np means nonportable)
Le sextidi 16 thermidor, an CCXXIV, sebechlebsky...@gmail.com a écrit :
> From: Jan Sebechlebsky
>
> Add support for nonblocking calls.
>
> Signed-off-by: Jan Sebechlebsky
> ---
> libavformat/fifo.c | 70
> +-
> 1 file changed, 59 insertions
On Tue, Aug 02, 2016 at 03:24:21PM +0200, sebechlebsky...@gmail.com wrote:
> From: Jan Sebechlebsky
>
> Add support for nonblocking calls.
>
> Signed-off-by: Jan Sebechlebsky
> ---
> libavformat/fifo.c | 70
> +-
> 1 file changed, 59 inserti
From: Jan Sebechlebsky
Add support for nonblocking calls.
Signed-off-by: Jan Sebechlebsky
---
libavformat/fifo.c | 70 +-
1 file changed, 59 insertions(+), 11 deletions(-)
diff --git a/libavformat/fifo.c b/libavformat/fifo.c
index bc8c973..e