On Fri, Feb 16, 2001, Archie Cobbs wrote:

> This patch seems to fix the problem below:
> 
> --- work/pth-1.3.7/pth_sched.c  Fri Mar 10 02:58:32 2000
> +++ work.fixed/pth-1.3.7/pth_sched.c    Fri Feb 16 20:21:57 2001
> @@ -763,8 +763,10 @@
>      }
>  
>      /* perhaps we have to internally loop... */
> -    if (loop_repeat)
> +    if (loop_repeat) {
> +        pth_time_set(now, PTH_TIME_NOW);
>          goto loop_entry;
> +    }
>  
>      pth_debug1("pth_sched_eventmanager: leaving");
>      return;
> 
> -Archie
> 
> Archie Cobbs wrote:
> > Unless I'm confused (very possible) the program below shows a bug in pth
> > where a thread that calls pth_nap() is never woken up.
> > 
> > If you run the program, you'll see the thread go to sleep but never wake up.
> > This is with pth-1.3.7 running on FreeBSD.

Thanks for the patch. It's now comitted to CVS for Pth 1.4a4. It will be
show up in the Pth 1.3 series soon, too. Thanks for your feedback and
contribution.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to