Re: [go-nuts] CGO core dump analysis using GDB

2023-01-17 Thread mariappan balraj
Hi Tamas, Using RPC will not scale and it needs lot of effort. So our only choice is CGO. Best Regards Mariappan On Monday, January 9, 2023 at 5:04:19 PM UTC+5:30 Tamás Gulácsi wrote: > I'd create a separate C program, that can be communicated with RPC style - > (https://github.com/protobuf-c/

[go-nuts] Re: Wait before Add

2023-01-17 Thread Brian Candler
You're supposed to do Add(1) -> Wait; and you'd normally wait once, in a single goroutine. Typical pattern: wg.Add(1) go func() { defer wg.Done() ... foo } wg.Add(1) go func() { defer wg.Done() ... bar } wg.Wait() // wait for both goroutines to complete On Tuesday, 17 January 20