From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-157958-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 45DB413877A for <garchives@archives.gentoo.org>; Wed, 13 Aug 2014 20:33:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1D8BE0CFC; Wed, 13 Aug 2014 20:33:50 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 898D4E0CF2 for <gentoo-user@lists.gentoo.org>; Wed, 13 Aug 2014 20:33:49 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id d1so1364054wiv.15 for <gentoo-user@lists.gentoo.org>; Wed, 13 Aug 2014 13:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ckcQTZnOcwZQj99S62ekiUcyEYOdllWztVK3tYxeErw=; b=Dd4/0F0gA+y3nZA6w9nmZA5ebq9TzJvX0wh+2jtpuFQJb7YxvKdtxsYGb32tej/apZ TjavgjfeTEaUIyCQdXsiiBIZw0svOetmwAmfqzQi8oXaP4ClMrByHEO+FthMD6UCY4Yt IDajhZeXC6lBZCGolH9D0/UOVpp1pGyg7oeW/DnH1lvDaVa5PA1brfuqlouo+aoAFHwd MPZbegcAjYIQSRHbN6LXKmCIUWy04NBC3vWYd4MOLI42BWLaMP+nY18Gl9DCljNbRKeK CsrKNkKBnXioyJkRp7vNb7WaBwBbgwP6ZItGBDppNs91+lTCI6ASGFbPM5ROyl6g0Ls5 wBvQ== X-Received: by 10.180.11.148 with SMTP id q20mr40802259wib.56.1407962028257; Wed, 13 Aug 2014 13:33:48 -0700 (PDT) Received: from [172.20.0.41] (105-237-190-183.access.mtnbusiness.co.za. [105.237.190.183]) by mx.google.com with ESMTPSA id td10sm71590210wic.10.2014.08.13.13.33.47 for <gentoo-user@lists.gentoo.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Aug 2014 13:33:47 -0700 (PDT) Message-ID: <53EBCB75.5070503@gmail.com> Date: Wed, 13 Aug 2014 22:32:53 +0200 From: Alan McKinnon <alan.mckinnon@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: OT: pthreads condition variable/mutex question References: <lsg6q2$toh$1@ger.gmane.org> <53EBC651.8050903@gmail.com> <lsghps$4m0$2@ger.gmane.org> In-Reply-To: <lsghps$4m0$2@ger.gmane.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: d5c236dd-fc4a-43d6-be70-5caa103d8b21 X-Archives-Hash: 4aa431b990fb7496215d7173de677a2a On 13/08/2014 22:28, Grant Edwards wrote: >> Have you considered a really simple solution like dbus? > I don't know if I would call dbus "really simple". :) > > My current implementation uses Unix domain sockets (which is what dbus > usually uses, isn't it?), and I'm trying to figure out how to reduce > overhead and latency. dbus would add even more overhead (it has code > to deal with byte ordering, serial/cookies, and various other features > and abstractions). I'm not sure it's really practical for > high-frequency events (e.g 100-200 events per second). To be honest, I'm somewhat out of my depth in this area. Sure, I can discuss it but you want details, and that I can't really provide. I mentioned dbus really just as a way to encourage you to think out of the box a little. Maybe it fits your needs, maybe not. But at least you would have given it some thought :-) Reading through the rest of the thread, perhaps dbus isn't suitable for this. You have lots of messages and they don't seem to be text-based. -- Alan McKinnon alan.mckinnon@gmail.com