From owner-cvs-all Thu Mar 15 17:20: 8 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F039637B718; Thu, 15 Mar 2001 17:20:02 -0800 (PST) (envelope-from archie@FreeBSD.org) Received: (from archie@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2G1K2i09421; Thu, 15 Mar 2001 17:20:02 -0800 (PST) (envelope-from archie) Message-Id: <200103160120.f2G1K2i09421@freefall.freebsd.org> From: Archie Cobbs Date: Thu, 15 Mar 2001 17:20:02 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/devel/pth/files patch-aa X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG archie 2001/03/15 17:20:02 PST Added files: devel/pth/files patch-aa Log: 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 #include #include 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); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message