Overview
| Artifact ID: | d7d1999ba54814951ade67481c50136a3ad718a5 |
|---|---|
| Ticket: | 2944777fffffffffffffffffffffffffffffffff
Tcl_WaitForEvent: CFRunLoop finished on MacOSX |
| User & Date: | das on 2010-02-03 04:52:08 |
Changes
- icomment:
Tcl_DoOneEvent() is not thread safe if you share an interp between threads, please read up on the Tcl threading model. You must only call Tcl functions for a given interp on the thread that created that interp. Also, you can only use TkAqua on the main thread (i.e. display can only occur from the main thread), indeed TkAqua should only be initialized on the interps created on the main thread. The only safe Tcl cross-thread notifications are those based on Tcl_ThreadAlert(), e.g. the Tcl_Async* mechanism. FWIW, the "CFRunLoop finished" panic is just a safety mechanism for an unexpected return avlue in tclMacOSXNotify.c Tcl_WaitForEvent(), you can try to take that out (it is an indication that somebody called CFRunLoopStop() on a thread's runloop, which Tcl certainly never does itself, try finding out who calls this)
- login: "das"
- mimetype: "text/plain"
- username: "das"