From owner-freebsd-hackers Sun Jun 21 22:54:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA22003 for freebsd-hackers-outgoing; Sun, 21 Jun 1998 22:54:12 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA21969; Sun, 21 Jun 1998 22:53:56 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id WAA12845; Sun, 21 Jun 1998 22:53:46 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199806220553.WAA12845@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Mike Smith cc: sos@FreeBSD.ORG, rhh@ct.picker.com (Randall Hopper), nirva@ishiboo.com, hasty@netcom.com, yokota@zodiac.mech.utsunomiya-u.ac.jp, multimedia@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: X-10 Mouse Remote patch In-reply-to: Your message of "Sun, 21 Jun 1998 21:10:23 PDT." <199806220410.VAA03380@antipodes.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 21 Jun 1998 22:53:46 -0700 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Just be careful where you take this one; it's a sliding scale of greys >from everything standalone (which for the cascaded MouseRemote case >would reek) through to Streams in user-space. Actually, one of the models I am contemplating is user Space Streams 8) Again, as Michael has stated these types of architectures are an overkill for the case of the moused daemon however it can pave the way for what I hope exciting new daemon type services. This is a short code snippet from JACE's BufferStreamTest.java and with JACE's ASX we can exploit very easily prioritized messages. // Spawn off a new thread. public class BufferStreamTest { public static void main (String args[]) { // Control hierachically-related active objects Stream stream = new Stream (); Module pm = new Module ("Consumer", new Consumer (), null, null); Module cm = new Module ("Producer", new Producer (), null, null); // Create Producer and Consumer Modules and push them onto the // STREAM. All processing is performed in the STREAM. if (stream.push (pm) == -1) { ACE.ERROR ("push"); return; } else if (stream.push (cm) == -1) { ACE.ERROR ("push"); return; } } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message