Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-04 Thread Jean-Charles BERTIN
Let me explain this. libdispatch on MacOS exports several symbols to handle integration with CoreFoundation: 1/ _dispatch_begin_NSAutoReleasePool/_dispatch_end_NSAutoReleasePool which are used by CF to handle ARP creation/destruction for its worker threads. 2/ dispatch_begin_thread_4GC/dispatch_be

Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-04 Thread Richard Frith-Macdonald
On 4 Mar 2013, at 10:43, Niels Grewe wrote: > On 04.03.2013 10:00, Richard Frith-Macdonald wrote: > >> the first, smaller patch, to change configure.ac and the cofig.h.in and >> base.make.in files to detect the presence/usability of libdispatch (would we >> only consider it usable if we had bl

Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-04 Thread Niels Grewe
On 04.03.2013 10:00, Richard Frith-Macdonald wrote: > the first, smaller patch, to change configure.ac and the cofig.h.in and > base.make.in files to detect the presence/usability of libdispatch (would we > only consider it usable if we had block support?), We already have a working check for

Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-04 Thread Richard Frith-Macdonald
On 1 Mar 2013, at 18:15, Jean-Charles BERTIN wrote: > Hmmm sorry but its clearly none of these solutions that will fix the > problem: if context watchers is empty the run loop will never execute > -[GSRunLoopCtxt pollUntil:within:]! > > So I suggest an another patch to fix this. Adding support

Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-01 Thread Jean-Charles BERTIN
Hmmm sorry but its clearly none of these solutions that will fix the problem: if context watchers is empty the run loop will never execute -[GSRunLoopCtxt pollUntil:within:]! So I suggest an another patch to fix this. Sorry for the inconvenience. Regards On Fri, 2013-03-01 at 17:39 +0100, Jean-C

Re: [PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-03-01 Thread Jean-Charles BERTIN
Ok, I didn't see this one: by adding systematically the dispatch watcher in GSRunLoopCtxt for the main thread, I broke the -[NSRunLoop run] and -[NSRunLoop runUntilDate:] methods. Since there is always at least one watcher, the methods never return. I wonder how I can correct this: 1/ add an ivar

[PATCH 18/21] Added support for libdispatch main queue in the main run loop.

2013-02-27 Thread Jean-Charles BERTIN
--- Source/GSRunLoopWatcher.h | 11 +++ Source/GSRunLoopWatcher.m | 163 ++-- Source/unix/GSRunLoopCtxt.m | 13 3 files changed, 182 insertions(+), 5 deletions(-) diff --git a/Source/GSRunLoopWatcher.h b/Source/GSRunLoopWatcher.h index 0812692..1