Re: [go-nuts] go runtime in shared libs functions called in threads

2022-10-20 Thread Peter Galbavy
Thanks for the detail. We cannot change the calling program, just conform to it's API, so it's one function call per email send event and each in it's own (new) thread. On Thursday, 20 October 2022 at 12:28:12 UTC+1 Konstantin Khomoutov wrote: > On Wed, Oct 19, 2022 at 06:28:20AM -0700, Peter G

Re: [go-nuts] go runtime in shared libs functions called in threads

2022-10-20 Thread Konstantin Khomoutov
On Wed, Oct 19, 2022 at 06:28:20AM -0700, Peter Galbavy wrote: > I have built a shared lib in Go to replace an old thing we use to send > email - mainly to modernise things and add TLS and authentication. We run > each call to the entry point in it's own thread in the main program. > > I am bot

[go-nuts] go runtime in shared libs functions called in threads

2022-10-19 Thread Peter Galbavy
I have built a shared lib in Go to replace an old thing we use to send email - mainly to modernise things and add TLS and authentication. We run each call to the entry point in it's own thread in the main program. I am both curious but also concerned about what happens here with go runtimes. I