From owner-p4-projects@FreeBSD.ORG Sun Jul 21 19:06:51 2013 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B9415751; Sun, 21 Jul 2013 19:06:50 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7A1D674F for ; Sun, 21 Jul 2013 19:06:50 +0000 (UTC) (envelope-from jonathan@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [8.8.178.74]) by mx1.freebsd.org (Postfix) with ESMTP id 695DBDBB for ; Sun, 21 Jul 2013 19:06:50 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.7/8.14.7) with ESMTP id r6LJ6oS9042103 for ; Sun, 21 Jul 2013 19:06:50 GMT (envelope-from jonathan@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.7/8.14.6/Submit) id r6LJ6ooc042100 for perforce@freebsd.org; Sun, 21 Jul 2013 19:06:50 GMT (envelope-from jonathan@freebsd.org) Date: Sun, 21 Jul 2013 19:06:50 GMT Message-Id: <201307211906.r6LJ6ooc042100@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jonathan@freebsd.org using -f From: Jonathan Anderson Subject: PERFORCE change 231325 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.14 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 19:06:51 -0000 http://p4web.freebsd.org/@@231325?ac=10 Change 231325 by jonathan@jonathan-on-zenith on 2013/07/21 19:06:41 Add __tesla_repeat to kernel version of tesla.h. This requires TESLA commit 892f32 to be useful. Affected files ... .. //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/include/tesla.h#6 edit Differences ... ==== //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/include/tesla.h#6 (text+ko) ==== @@ -72,6 +72,12 @@ #include +#ifdef _KERNEL +#include +#else +#include +#endif + /** * TESLA events can be serialised either with respect to the current thread * or, using explicit synchronisation, the global execution context. @@ -82,6 +88,8 @@ /** A sequence of TESLA events. Can be combined with && or ||. */ struct __tesla_event* __tesla_sequence(__tesla_event*, ...); +/** A sequence of events that repeats. */ +struct __tesla_event* __tesla_repeat(int min, int max, __tesla_event*, ...); /* TESLA events: */ /** Entering a function (with optionally-specified arguments). */