[FFmpeg-devel] [PATCH] os2threads: Add pthread_once emulation

Ronald S. Bultje rsbultje at gmail.com
Sun Oct 11 12:51:58 CEST 2015


Hi,

On Sat, Oct 10, 2015 at 10:32 PM, Dave Yeo <daveryeo at telus.net> wrote:

> Based on code by Yuri Dario,
> http://svn.netlabs.org/repos/ports/pthread/trunk
>
> Signed-off-by: Dave Yeo <daveryeo at telus.net>
> ---
>  compat/os2threads.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>
> diff --git a/compat/os2threads.h b/compat/os2threads.h
> index 5b6ca55..7f2c925 100644
> --- a/compat/os2threads.h
> +++ b/compat/os2threads.h
> @@ -31,9 +31,18 @@
>
>  #undef __STRICT_ANSI__          /* for _beginthread() */
>  #include <stdlib.h>
> +#include <sys/builtin.h>
>
>  #include "libavutil/mem.h"
>
> +/*
> + * Boolean values to make us independent of system includes.
> + */
> +enum {
> +  PTW32_FALSE = 0,
> +  PTW32_TRUE = (! PTW32_FALSE)
> +};
> +


I know this is os2 specific code, but do we really need this part?

Ronald


More information about the ffmpeg-devel mailing list