Commit graph

7 commits

Author SHA1 Message Date
Dirk Froemberg
f5f2e82d03 Add startup script for non standard library path.
PR:		ports/37142
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2002-04-28 07:38:54 +00:00
Maxim Sobolev
d0fba3e0f1 Backout previous change - it seems that new revision of the patch doesn't
apply everywhere.

Submitted by:	Todd Punderson <todd@doonga.net>
2001-12-20 06:19:02 +00:00
Maxim Sobolev
41c22e9c76 Don't filter libc_r on 5-CURRENT. 2001-12-19 20:20:23 +00:00
Maxim Sobolev
b0790e4238 Don't link in libc - FreeBSD doesn't need this.
Submitted by:	Ports Fury
2001-10-31 08:20:45 +00:00
Maxim Sobolev
2eb4691928 Don't install useless .la files. 2001-07-30 16:38:49 +00:00
Ralf S. Engelschall
46490f4de0 Upgrade to GNU Portable Threads (Pth), version 1.4.0 2001-03-25 14:12:16 +00:00
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