1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/pth
Archie Cobbs 4becd5a1b2 This patch fixes a scheduling bug and is to be incorporated in the
next version. In the meantime, apply with the port.

FYI, the bug is demonstrated by this program:

#include <stdio.h>
#include <stdlib.h>
#include <pth.h>
static int check_something(void *arg)
{
        return (0);
}
static void *thread(void *arg)
{
        printf("thread sleeping five seconds...\n");
        pth_nap(pth_time(5, 0));
        printf("thread is done sleeping\n");	/* bug: we never get here */
        return (NULL);
}
int main(int ac, char **av)
{
        pth_event_t ev;
        pth_init();
        pth_spawn(NULL, thread, NULL);
        ev = pth_event(PTH_EVENT_FUNC, check_something, NULL, pth_time(2, 0));
        while (1)
                pth_wait(ev);
}
2001-03-16 01:20:02 +00:00
..
files This patch fixes a scheduling bug and is to be incorporated in the 2001-03-16 01:20:02 +00:00
distinfo Upgrade to GNU Pth, version 1.3.7 2000-07-29 16:03:15 +00:00
Makefile Upgrade to GNU Pth, version 1.3.7 2000-07-29 16:03:15 +00:00
pkg-comment Update new PTH port after repository copy from old NPS port. 1999-07-05 06:33:44 +00:00
pkg-descr Upgrade GNU Portable Threads (Pth) from version 1.2.2 to 1.3.0, 2000-02-19 17:14:03 +00:00
pkg-plist Third round of INSTALL_SHLIBS=yes fixes. 2000-06-15 17:59:45 +00:00