Re: [go-nuts] Re: Go called by C: is the goroutine locked to a thread?

2023-10-30 Thread Domenico Andreoli
On Sun, Oct 29, 2023 at 11:32 PM Jason E. Aten wrote: > You could also look at the existing Go <-> Python interfaces and see how > they handle such issues. Might give you hints. > > https://github.com/qur/gopy. (python 3.11) > https://github.com/glycerine/pyg (python 3.7.1) > > Thanks for the poi

Re: [go-nuts] Re: Go called by C: is the goroutine locked to a thread?

2023-10-25 Thread Domenico Andreoli
ectedly to another goroutine. > See https://go.dev/issue/20395. That's a very interesting and eye opening link, thanks a lot. Dom > > On Monday, October 23, 2023 at 8:34:28 AM UTC-4 Domenico Andreoli wrote: > > > Hi, > > > > I'm writing a Go library to e

[go-nuts] Go called by C: is the goroutine locked to a thread?

2023-10-23 Thread Domenico Andreoli
Hi, I'm writing a Go library to embed/extend CPython (Pygolo ). CPython uses thread local storage and therefore I need to care about pinning goroutines to OS threads accordingly. It's pretty much clear that when the Python interpreter is embedded it can be acces