Changeset 15183


Ignore:
Timestamp:
Jan 25, 2012, 10:11:58 PM (8 years ago)
Author:
gb
Message:

In ENSURE-DEFERRED-STREAM-INFO-FOR-IO, force the document object (and
all of the related infrastructure) to be created on the event thread.
This is probably a good idea in general and doing this avoids the race
condition described in ticket:905.

Hemlock buffer creation isn't really thread-safe; if we ever want it
to be, we might want to do locking/serialization at a different level.

Fixes ticket:905 in the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/cocoa-listener.lisp

    r15179 r15183  
    766766      (unless (deferred-cocoa-listener-stream-info-window info)
    767767        (with-autorelease-pool
    768             (let* ((doc (make-instance 'hemlock-background-listener-document))
     768            (let* ((doc (execute-in-gui (lambda () (make-instance 'hemlock-background-listener-document))))
    769769                   (buffer (hemlock-buffer doc))
    770770                   (process (deferred-cocoa-listener-stream-info-process info)))
Note: See TracChangeset for help on using the changeset viewer.