From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: kqueue in Emacs 25.1? Date: Sat, 07 Nov 2015 16:02:25 +0100 Message-ID: <85lha9j1j2.fsf@iznogoud.viz> References: <56259FDD.8040401@dancol.org> <87zizeme8k.fsf@tromey.com> <5625B166.3080104@dancol.org> <86zizdczhp.fsf@stephe-leake.org> <871tc315y3.fsf@lifelogs.com> <83k2pvqg0l.fsf@gnu.org> <87io5ddh7c.fsf_-_@gmx.de> <85pozlj1wp.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446908573 32207 80.91.229.3 (7 Nov 2015 15:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2015 15:02:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 07 16:02:45 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zv50u-00084v-Es for ged-emacs-devel@m.gmane.org; Sat, 07 Nov 2015 16:02:44 +0100 Original-Received: from localhost ([::1]:44189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv50t-0002A9-Rv for ged-emacs-devel@m.gmane.org; Sat, 07 Nov 2015 10:02:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv50h-00029q-9A for emacs-devel@gnu.org; Sat, 07 Nov 2015 10:02:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zv50e-0000ws-46 for emacs-devel@gnu.org; Sat, 07 Nov 2015 10:02:31 -0500 Original-Received: from b2bfep12.mx.upcmail.net ([62.179.121.57]:39418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv50d-0000wM-RL for emacs-devel@gnu.org; Sat, 07 Nov 2015 10:02:28 -0500 Original-Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep12.mx.upcmail.net (InterMail vM.8.01.05.18 201-2260-151-151-20140610) with ESMTP id <20151107150225.UKUT32668.b2bfep12-int.chello.at@edge12.upcmail.net> for ; Sat, 7 Nov 2015 16:02:25 +0100 Original-Received: from iznogoud.viz ([91.119.133.190]) by edge12.upcmail.net with edge id ef2R1r00A46eDrP0Cf2RU6; Sat, 07 Nov 2015 16:02:25 +0100 X-SourceIP: 91.119.133.190 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1Zv50b-0000OT-2w; Sat, 07 Nov 2015 16:02:25 +0100 Mail-Followup-To: Michael Albinus , emacs-devel@gnu.org In-Reply-To: <85pozlj1wp.fsf@iznogoud.viz> (Wolfgang Jenkner's message of "Sat, 07 Nov 2015 15:52:33 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.179.121.57 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193541 Archived-At: On Sat, Nov 07 2015, Wolfgang Jenkner wrote: > I'd say it depends on how you implement it: if you are trying to emulate > the inotify API it might be better to just link with libinotify-kqueue I should add that one difference between libinotify-kqueue and native GNU/Linux inotify is that libinotify uses a separate worker-thread. This is a difference that can become visible sometimes (at least in the current implementation), e.g., the worker thread doesn't block most signals, so the effect of signal handlers can be delayed until control returns to the main thread.