[go-nuts] gomobile: a success story and a heartfelt thanks!

2023-12-06 Thread 'Marko Bencun' via golang-nuts
Hi This is just a short post to say **thanks** to the gomobile team for making and maintaining such a great tool! I am unsure of how big the team is or how widely adopted this tool is, so I thought it can't hurt to post a success story and to let you know that gomobile was and is mission critical

Re: [go-nuts] Why is runtime.Gosched needed in this single-threaded, no-goroutines cgo program?

2023-02-22 Thread 'Marko Bencun' via golang-nuts
> Ian > > > > On Wed, 15 Feb 2023 at 22:05, Ian Lance Taylor wrote: > > > > > > On Wed, Feb 15, 2023 at 8:42 AM 'Marko Bencun' via golang-nuts > > > wrote: > > > > > > > > I am running into a a weird error in C code that only ma

Re: [go-nuts] Why is runtime.Gosched needed in this single-threaded, no-goroutines cgo program?

2023-02-15 Thread 'Marko Bencun' via golang-nuts
That is a good hint, thanks. However, in the Go code above, there are no goroutines and everything runs in one thread as far as I can tell, but the issue appears anyway. On Wed, 15 Feb 2023 at 22:05, Ian Lance Taylor wrote: > > On Wed, Feb 15, 2023 at 8:42 AM 'Marko Bencun'

[go-nuts] Why is runtime.Gosched needed in this single-threaded, no-goroutines cgo program?

2023-02-15 Thread 'Marko Bencun' via golang-nuts
Dear Gophers I am running into a a weird error in C code that only materializes when calling it from Go using cgo. I hope you could help me understand this behaviour and why calling runtime.Gosched() seems to resolve the issue. I worry that this may not be the right fix, so I want to understand wh