From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: Potluck - thread safe event loop with await semantics Date: Tue, 23 Feb 2016 16:49:10 +0000 Message-ID: <20160223164910.6a40c66c@dell.homenet> References: <20160216214512.42e6fd39@bother.homenet> <878u2dosxu.fsf@gnu.org> <20160222174056.2091d806@dell.homenet> <20160222172804.6d40b0c3@capac> <20160223003121.4ae217f1@dell.homenet> <20160223032552.620074ed@capac> <20160223120916.2ea94c7e@dell.homenet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1456246194 16063 80.91.229.3 (23 Feb 2016 16:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 16:49:54 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 23 17:49:46 2016 Return-path: Envelope-to: guile-user@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 1aYG9Y-0003Xz-1O for guile-user@m.gmane.org; Tue, 23 Feb 2016 17:49:36 +0100 Original-Received: from localhost ([::1]:58417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYG9X-0006We-JA for guile-user@m.gmane.org; Tue, 23 Feb 2016 11:49:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYG9F-0006Ji-Nq for guile-user@gnu.org; Tue, 23 Feb 2016 11:49:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYG9B-0007PD-O6 for guile-user@gnu.org; Tue, 23 Feb 2016 11:49:17 -0500 Original-Received: from avasout07.plus.net ([84.93.230.235]:48826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYG9B-0007Oy-HM for guile-user@gnu.org; Tue, 23 Feb 2016 11:49:13 -0500 Original-Received: from dell.homenet ([87.115.102.251]) by avasout07 with smtp id MspA1s00Q5RSpqF01spCR7; Tue, 23 Feb 2016 16:49:12 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=QqujpgGd c=1 sm=1 tr=0 a=LKYHlaG36XqnqgCEqUWx/g==:117 a=LKYHlaG36XqnqgCEqUWx/g==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=jFJIQSaiL_oA:10 a=Fwo3Pw8wAAAA:8 a=lhp0-wINUwaOzq0B66cA:9 a=rLht74pDqgTdN4Ly:21 a=qGhapT7O8j5cF_qX:21 a=CjuIK1q_8ugA:10 Original-Received: from dell.homenet (localhost [127.0.0.1]) by dell.homenet (Postfix) with ESMTP id EC99F443A39 for ; Tue, 23 Feb 2016 16:49:10 +0000 (GMT) In-Reply-To: <20160223120916.2ea94c7e@dell.homenet> X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.29; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.235 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12434 Archived-At: On Tue, 23 Feb 2016 12:09:16 +0000 Chris Vine wrote: [snip] > As regards guile-gnome, I guess the problem may well be to do with the > operation of the garbage collector. However I suspect it is caused by > too eager collection rather than too conservative collection - there > is no obvious sign of excess memory usage. Probably the collector > sometimes frees memory still in use by the wrapper when the wrapper is > invoked in a multi-threaded context. And also in a single threaded context. Oh dear. This will also segfault, although it takes a lot longer to do it. -------------------------------- #! /usr/bin/guile-gnome-2 !# (use-modules (gnome glib)) (define main-loop (g-main-loop-new #f #f)) (g-timeout-add 100 (lambda () (g-idle-add (lambda () (display "running ") #f)) #t)) (display "Starting main loop\n") (g-main-loop-run main-loop) -------------------------------- Chris