From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA03709; Mon, 9 Jun 2003 00:13:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA03889 for ; Mon, 9 Jun 2003 00:13:45 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp0.cp.tin.it (vsmtp0.virgilio.it [212.216.176.136] (may be forged)) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h58MDiT22594 for ; Mon, 9 Jun 2003 00:13:44 +0200 (MET DST) Received: from vsmtp7.tin.it (212.216.176.147) by smtp0.cp.tin.it (6.7.016) id 3EDFBB59000C94F8 for caml-list@inria.fr; Mon, 9 Jun 2003 00:13:43 +0200 Received: from furia (80.181.211.20) by vsmtp7.tin.it (6.7.016) id 3EDF8CED00469B90 for caml-list@inria.fr; Mon, 9 Jun 2003 00:13:43 +0200 Received: from localhost ([127.0.0.1] helo=furia) by furia with smtp (Exim 3.35 #1 (Debian)) id 19P8Rn-00054o-00 for ; Mon, 09 Jun 2003 00:15:31 +0200 Date: Mon, 9 Jun 2003 00:15:29 +0200 From: Nick Name To: caml-list@inria.fr Subject: [Caml-list] Asynchronous communication channels Message-Id: <20030609001529.53e57c9a.nick.name@inwind.it> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; overwrite:01 buffer:01 asynchronous:01 semantics:01 rewriting:02 thread:02 module:03 wich:03 implement:05 buffers:05 variables:06 uses:06 scratch:06 libraries:09 nick:10 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I need some asynchronous channels in my current project. Some of those have to block when the maximum capacity is exceded, others are one-position buffers wich should have overwrite semantics. Are there already done libraries or should I roll my own? If I have to implement the buffer myself, what's the best way, a buffer thread wich uses the Event module or rewriting everything from scratch with condition variables to spare a thread? Thanks for attention Vincenzo ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners