pthreads-win32 stable

Announcements made by users.
rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

pthreads-win32 stable

Post by rogerdpack » Tue Sep 11, 2012 9:47 pm

I've heard conflicting things about the quality of pthreads-win32. Anybody used it? Any experiences? Is there any reason not to use it or prefer another library or windows "native" thread wrappers of x264/ffmpeg?
Thanks!
-roger-

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: pthreads-win32 stable

Post by Zeranoe » Wed Sep 12, 2012 2:19 am

I added this to a global sticky.

I'm very curious for any input.

SubJunk
Posts: 17
Joined: Mon Jul 02, 2012 6:42 am

Re: pthreads-win32 stable

Post by SubJunk » Tue Sep 18, 2012 1:27 am

I use it for my MPlayer/MEncoder builds (linky) and haven't had any issues reported.

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: pthreads-win32 stable

Post by rogerdpack » Tue Nov 27, 2012 12:30 am

Ok after some testing, using pthreads-w32 seems quite stable.
It also seems to be about the same speed (at time a tidge faster) in the workloads I throw at it, so I'd recommend its use.

To use static you (unfortunately) have to pass this parameter around, but it works:
--extra-cflags=-DPTW32_STATIC_LIB

Cheers!
-roger-

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: pthreads-win32 stable

Post by Zeranoe » Tue Nov 27, 2012 11:28 pm

rogerdpack wrote:Ok after some testing, using pthreads-w32 seems quite stable.
It also seems to be about the same speed (at time a tidge faster) in the workloads I throw at it, so I'd recommend its use.

To use static you (unfortunately) have to pass this parameter around, but it works:
--extra-cflags=-DPTW32_STATIC_LIB

Cheers!
-roger-
I just read the libass thread and you claimed that the w32thread was noticeably slower.

Is this really the case? If so, I will probably switch over the pthread-w32, but I thought that there wasn't any speed difference and w32thread was more stable?

SubJunk
Posts: 17
Joined: Mon Jul 02, 2012 6:42 am

Re: pthreads-win32 stable

Post by SubJunk » Tue Nov 27, 2012 11:55 pm

Yeah pthread is faster on average

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: pthreads-win32 stable

Post by rogerdpack » Wed Nov 28, 2012 12:15 am

man it is hard to figure out how to post a reply to this thread...if I browse to it under "global announcements" it doesn't let me post a reply, I have to find it under "Usage Issues". Odd.

Anyway I haven't done any real in depth scientific benchmarking, but my trivial benchmarking seems to show it either just as fast, or a tidge faster (but with some other added benefits, like the udp input can have a circular buffer now, etc.)
Thank you for your support.
-r

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: pthreads-win32 stable

Post by Zeranoe » Wed Nov 28, 2012 1:16 am

rogerdpack wrote:man it is hard to figure out how to post a reply to this thread...if I browse to it under "global announcements" it doesn't let me post a reply, I have to find it under "Usage Issues". Odd.
could you tell me how you failed to access it? I changed something, see if it works now.

Thanks for the report.

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: pthreads-win32 stable

Post by rogerdpack » Thu Nov 29, 2012 4:37 pm

Ok I can respond now, thanks.
-r

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: pthreads-win32 stable

Post by Zeranoe » Sun Dec 16, 2012 6:55 am

Is it confirmed that the x264 pthread hang bug is fixed?

I remember having the issue with pthread-w32, so is it resolved now?

If so I will make the next builds with it.

Post Reply
'