Motion - Pthread Fix Patch

Pthread Fix

Posted by KennethLavrsen based on email from ChristopheGRENIER


The pthread_cond_signal() routine is used to signal (or wake up) another thread which is waiting on the condition variable. It should be called after mutex is locked, and must unlock mutex in order for pthread_cond_wait() routine to complete.

Description of Patch

Please find a patch that add locking and unlocking of mutex each time pthread_cond_signal is called.

Testing from netcam users is welcome. Regards,


Installation of Patch

patch < filename

Change History of Patch

  • Initial version

Discussion and Comments

Implemented on Motion 3.2.1 but not 3.1.20 because the patch fails for this version.

-- KennethLavrsen - 22 May 2005

Update The patch has now also been merged into 3.1.20. -- KennethLavrsen - 23 May 2005

Topic revision: r4 - 28 May 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.