[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSSound Reimplementation
From: |
Richard Frith-Macdonald |
Subject: |
Re: NSSound Reimplementation |
Date: |
Tue, 30 Jun 2009 07:57:35 +0100 |
On 30 Jun 2009, at 07:36, Wolfgang Lux wrote:
There is a subtle difference between OS X and GNUstep: As far as I
understand the code, threadInfo->inputFd is not even checked if the
run loop has no event sources and no timer and it is just added
implicitly to the event sources in -pollUntil:within: in
GSRunLoopCtxt. On OS X, on the other hand, (the equivalent of)
threadInfo->inputFd automatically becomes an input source once the
thread starts a new thread. So, if you call NSRunLoop's -
runMode:beforeDate: in GNUstep after starting a new thread without
adding a timer or an input source, it returns immediately with NO
and it does not perform an invocation scheduled by the secondary
thread, whereas on OS X -runMode:beforeDate: performs the scheduled
invocation and then returns YES. If I find time, I'll try to make up
a test case.
Yes please ... sounds like one of those cases where GNUstep does what
the documentation says rather than what OSX actually does. It's
always good to mirror the OSX behavior for compatibility (and note
things in our documentation). We can probably mimic that behavior
fairly easily.
- Re: NSSound Reimplementation, (continued)
- Re: NSSound Reimplementation, Stefan Bidigaray, 2009/06/26
- Re: NSSound Reimplementation, Stefan Bidigaray, 2009/06/27
- Re: NSSound Reimplementation, Wolfgang Lux, 2009/06/27
- Re: NSSound Reimplementation, Wolfgang Lux, 2009/06/28
- Re: NSSound Reimplementation, Stefan Bidigaray, 2009/06/28
- Re: NSSound Reimplementation, Stefan Bidigaray, 2009/06/28
- Re: NSSound Reimplementation, Wolfgang Lux, 2009/06/28
- Re: NSSound Reimplementation, Richard Frith-Macdonald, 2009/06/29
- Re: NSSound Reimplementation, Stefan Bidigaray, 2009/06/29
- Re: NSSound Reimplementation, Wolfgang Lux, 2009/06/30
- Re: NSSound Reimplementation,
Richard Frith-Macdonald <=