I’m building a shared library of Go code that is loaded as a module by python, and called from there. Somehow, I need to ensure that one particular function is called on the main thread (Mac OS cocoa gui event loop code requires this). I tried adding an init() function in the library and called runtime.LockOSThread() there, but that didn’t work (docs say it should, but presumably that doesn’t apply to the dynamic lib situation). Thanks,
- Randy -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.