Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] configure: warn when threading is disabled
@ 2023-10-03 13:37 Anton Khirnov
  2023-10-03 13:40 ` James Almer
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Khirnov @ 2023-10-03 13:37 UTC (permalink / raw)
  To: ffmpeg-devel

Explicitly state what the implications of this are.
---
 configure | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure b/configure
index 8a1a1b8584..5ba2698798 100755
--- a/configure
+++ b/configure
@@ -7493,6 +7493,12 @@ check_deps $CONFIG_LIST       \
 
 enabled threads && ! enabled pthreads && ! enabled atomics_native && die "non pthread threading without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you are on x86"
 
+enabled threads || warn \
+    "Threading support was disabled or is not available on this platform."   \
+    "This means that not only is this build not multi-threaded, but also"    \
+    "that the libraries from this build MUST NOT be used in a multi-threaded"\
+    "environment."
+
 case $target_os in
 haiku)
     disable memalign
-- 
2.40.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] configure: warn when threading is disabled
  2023-10-03 13:37 [FFmpeg-devel] [PATCH] configure: warn when threading is disabled Anton Khirnov
@ 2023-10-03 13:40 ` James Almer
  2023-10-03 14:04   ` Anton Khirnov
  0 siblings, 1 reply; 3+ messages in thread
From: James Almer @ 2023-10-03 13:40 UTC (permalink / raw)
  To: ffmpeg-devel

On 10/3/2023 10:37 AM, Anton Khirnov wrote:
> Explicitly state what the implications of this are.
> ---
>   configure | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/configure b/configure
> index 8a1a1b8584..5ba2698798 100755
> --- a/configure
> +++ b/configure
> @@ -7493,6 +7493,12 @@ check_deps $CONFIG_LIST       \
>   
>   enabled threads && ! enabled pthreads && ! enabled atomics_native && die "non pthread threading without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you are on x86"
>   
> +enabled threads || warn \
> +    "Threading support was disabled or is not available on this platform."   \

nit: The target platform

> +    "This means that not only is this build not multi-threaded, but also"    \
> +    "that the libraries from this build MUST NOT be used in a multi-threaded"\
> +    "environment."
> +
>   case $target_os in
>   haiku)
>       disable memalign
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] configure: warn when threading is disabled
  2023-10-03 13:40 ` James Almer
@ 2023-10-03 14:04   ` Anton Khirnov
  0 siblings, 0 replies; 3+ messages in thread
From: Anton Khirnov @ 2023-10-03 14:04 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Quoting James Almer (2023-10-03 15:40:12)
> On 10/3/2023 10:37 AM, Anton Khirnov wrote:
> > Explicitly state what the implications of this are.
> > ---
> >   configure | 6 ++++++
> >   1 file changed, 6 insertions(+)
> > 
> > diff --git a/configure b/configure
> > index 8a1a1b8584..5ba2698798 100755
> > --- a/configure
> > +++ b/configure
> > @@ -7493,6 +7493,12 @@ check_deps $CONFIG_LIST       \
> >   
> >   enabled threads && ! enabled pthreads && ! enabled atomics_native && die "non pthread threading without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you are on x86"
> >   
> > +enabled threads || warn \
> > +    "Threading support was disabled or is not available on this platform."   \
> 
> nit: The target platform

very right, fixed locally

-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-03 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 13:37 [FFmpeg-devel] [PATCH] configure: warn when threading is disabled Anton Khirnov
2023-10-03 13:40 ` James Almer
2023-10-03 14:04   ` Anton Khirnov

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git