Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263235AbTETAnZ (ORCPT ); Mon, 19 May 2003 20:43:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263333AbTETAnZ (ORCPT ); Mon, 19 May 2003 20:43:25 -0400 Received: from rwcrmhc52.attbi.com ([216.148.227.88]:40607 "EHLO rwcrmhc52.attbi.com") by vger.kernel.org with ESMTP id S263235AbTETAmZ (ORCPT ); Mon, 19 May 2003 20:42:25 -0400 Message-ID: <3EC98373.40503@kegel.com> Date: Mon, 19 May 2003 18:22:59 -0700 From: Dan Kegel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: de-de, en MIME-Version: 1.0 To: Davide Libenzi CC: John Myers , linux-aio@kvack.org, Linux Kernel Mailing List Subject: Re: Comparing the aio and epoll event frameworks. References: <200305192333.QAA12018@pagarcia.nscp.aoltw.net> <3EC9807D.3080804@kegel.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 33 Davide Libenzi wrote: > On Mon, 19 May 2003, Dan Kegel wrote: > > >>Davide Libenzi wrote: >> >>>Adding a single shot feature to epoll takes about 5 lines of code, >>>comments included :) You know how many reuqests I had ? Zero, nada. >> >>I thought edge triggered epoll *was* single-shot. > > > For single shot I mean that once you receive one event, you will not > receive more events for that fd if you do not rearm it. Suppose you > receive 1000 bytes of data and you get an event (EPOLLIN). If after 10 > seconds you receive another 1000 bytes, you will receive another event. > This is not single shot. Oh, ok. I much prefer plain old edge triggered, anyway. It does the right thing with less fuss. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/